Topic was automatically imported from the old Question2Answer platform.
Asked By
kovacsur10
I am new to Godot engine, and I’m trying to create a C++ module. Is it possible to have a MeshInstance variable in a class that is exposed to the editor as well (like a property)?
Ref< MeshInstance > is not valid, since MeshInstance is not a child of Reference (it’s a Node). On the other hand AudioStream has Reference as a parent class (Inherits: Resource < Reference < Object). That’s why I could not achieve to use the same method you mentioned.
kovacsur10 | 2018-04-24 16:04
you dont need to wrap it in Ref thou.
You can pass object *
Is your module managing the object? If so, look on how RID works so you will not have object ownership problems.