Hi,
I have a class that does not extend/inherit from Mono behaviour and wanted to call the Destroy Function, does anyone know what the import is so i can use it in a none Mono Behaviour script
goes something like this
using Systems. xxxxx .xxxxx
Hi,
I have a class that does not extend/inherit from Mono behaviour and wanted to call the Destroy Function, does anyone know what the import is so i can use it in a none Mono Behaviour script
goes something like this
using Systems. xxxxx .xxxxx
at the top of your script, make sure you use
using UnityEngine;
and then you can just type in:
GameObject.Destroy(obj);
using UnityEngine;