If what you are trying to find is an actor that is a child of whatever script you are calling the GetChild from the it should work. If you are just looking for another script then there should be a Actor.GetScript function . You can also share the errors you are getting.
[Serialize, ShowInEditor] you will have to use both right now if you want to show your private variable and have it serialize. But Flax also supports showing c# properties in the editor out of the box, I suggest using a public property to show something in the editor.
If you expose LayerMask member to the editor you will be able to pick your bits. There are some tricks you could use to get access to the physics layer masks if that is what you are after.
I believe the HashCode one will not be available due to Flax 1.5 using the .NET Framework 4.5.2 and not .NET Core. Flax will be updating to .NET 7 for 1.6 update. I would think it would be available then.
Thank you very much for your help. With those clarifications I was able to fix more than half of the errors. I don’t think that I’ve got my head around the Actor/Component thing. This is where my Unreal/Unity baggage is a problem because there are some things that I need to unlearn.
Converting mouse clicks to world (RayCast wants a direction but that seems counter-intuitive for this use case) and new/Instantiate/Spawn are my biggest headaches right now, so I’ll try again tomorrow.
Thank you, again, for your responses. They really helped a lot.
In Flax Engine you can use Actors and scripts. Scripts would be similar to what you would be used in in unity and actors are like the game objects. Flax Engine is designed around different components being their own actors instead of everything being scripts like in unity. You have a lot of freedom in the engine because you could design you systems as actors or scripts.
Actors are all objects of predefined types, meaning, and Actor can only be a camera, or only be a light, or only be a Rigid Body, etc. You can achieve a similar result to components in Unity and UE by parenting Actors in Flax.
Any guidance on:
Spawning prefabs
Is there an Event system?
How can you determine if the mouse is over an Actor? The Script class doesn’t have an event for that
Would be greatly appreciated
Those are some good questions. Would you mind making a new topic for each one? That way, if anyone in the future also had those questions, they’d be able to find the answer easier. Thanks!