Indeed if you use TCastleControlBase
(instead of TCastleControl
) then it will not have a scene manager. You can trivially create it yourself, by doing
SceneManager := TCastleSceneManager.Create(Application);
CastleControl1.Controls.InsertFront(SceneManager);
Sorry but I still don’t understand well. If instead of the TCastleControl component I use TCastleControlBase why is there a CastleControl1 in your example? I thought it might be a transcription error but CastleControlBase1 has no InsertFront in Controls, only InsertComponent.
What I’m trying to do is very simple but I have to be able to understand the various steps.
I would like to use the Lazarus form and load in it a 2D background with a mesh as a floor in front of it where my 3D character should walk. Of course I will then have to set the camera to the correct position.
I already have all the elements ready (it’s a small project made with Unity) and I’m trying to get it on your engine.I would like to use the Lazarus form because I then need to use its components.
Isn’t there any demo available that I can use as a reference?
edit: Do I have to use CastleControlBase1.Container.Controls.InsertFront(SceneManager)?