-
|
i'm trying to remove an object by calling entity.Destroy(); but that says "'ComponentBase.Destroy()' is inaccessible due to its protection level" so i'm not sure how to call that method? i come from python, so i'm having trouble understanding what the keywords and classes mean. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Entities aren't manually destroyed in stride, they act like any reference type so they will be 'destroyed' automatically by the garbage collector once nothing references them anymore. |
Beta Was this translation helpful? Give feedback.
Entities aren't manually destroyed in stride, they act like any reference type so they will be 'destroyed' automatically by the garbage collector once nothing references them anymore.
Destroy in this case is a protected method used by the engine in certain circumstances.
How about we continue this in your previous thread though, it's the same issue.