ObjectManager.DestroyObject
Declaration#
public virtual void DestroyObject(Object target, bool allowNetworked)Parameters#
| Name | Description |
|---|---|
| target | Object to destroy |
| allowNetworked | Destroy networked object |
Description#
Destroy an object
Usage#
Example
using NullSave.GDTK;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod() { InterfaceManager.ObjectManagement.DestroyObject(gameObject); }
}