#Cannot destroy actor
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
My code literally like this
this.gameObject.destroy;
}```
The class is extends Behavior, and I add it as component, so I need to destroy actor that is on scene, with component that includes that code
Hey 👋
Destroy is a function, you need to add () after the function name in order to call it.
Change your code to this.gameObject.destroy()
Ahh, thank you, now I feel dumb 😅😂😂