Thanks for this tutorial. For the time I have been exploring the engine, I came up with another idea for next video: adding a child to any actor. Because I found two methods for that: addchild(Type type) and addchild(). I think It'd be important to explain how to use them.
This is really C# specific and has nothing to do with Flax. The first version requires the type as an argument which you can get with typeof(). The reason you use this instead of the generic one(with AddChild()) is for stuff like reflection. When using reflection you can't call the generic method directly and need to include some boilerplate code, so it makes things a bit nicer.
@@MineBill_ But what if we created the actor variable with predefined parameters in code and want to add it to any actor in hierarchy? I just have no competence to talk about reflections through above-mentioned methods, but I think the game developer has to know how to add child. Even If it's not done with these methods
Nice stuff, abra!!
Thanks for this tutorial. For the time I have been exploring the engine, I came up with another idea for next video: adding a child to any actor. Because I found two methods for that: addchild(Type type) and addchild(). I think It'd be important to explain how to use them.
This is really C# specific and has nothing to do with Flax. The first version requires the type as an argument which you can get with typeof(). The reason you use this instead of the generic one(with AddChild()) is for stuff like reflection. When using reflection you can't call the generic method directly and need to include some boilerplate code, so it makes things a bit nicer.
@@MineBill_ But what if we created the actor variable with predefined parameters in code and want to add it to any actor in hierarchy? I just have no competence to talk about reflections through above-mentioned methods, but I think the game developer has to know how to add child. Even If it's not done with these methods
@abradotcs hey did you make engine it's locks good
can i make my own UI if i have png files
like is it possible to use theme in flax
like the same way godot has his UI set up