It is tricky to figure out how to properly use WithBaseField
generically
#715
Labels
documentation
Improvements or additions to documentation
WithBaseField
generically
#715
See this discord thread.
But basically there isn't any explicit documentation stating that in order to call
self.base/base_mut()
, the compiler must know the type ofSelf::Base
. It could be useful to add an example somewhere of how to properly declare the bounds in the generic case.The way to declare the bound in case you want the base to be
Node3D
is:The text was updated successfully, but these errors were encountered: