Closed BeyondTomrrow closed 2 years ago
This is known and happens when using latest engine and "outdated" tutorials. You can implement the trait using following macro:
use fyrox::{scene::DirectlyInheritableEntity, impl_directly_inheritable_entity_trait};
...
impl_directly_inheritable_entity_trait!(YourScript;)
Keep in mind, that this trait (and macro) was removed in inheritance
branch. It will be merged to master quite soon.
Thank you for the quick response and for the fix.
When following along the blog post for 0.27 you will get an
impl ScriptTrait for Example { | ^^^^^^^^^^^ the trait `DirectlyInheritableEntity` is not implemented for `Example'
This also occurs with
fyrox-template script --name example
command to generate the template.Is there a current workaround?