/
DestroyObject (.NET)

DestroyObject (.NET)

- Declaration

public static void DestroyObject(this CavrnusSpaceConnection spaceConn, CavrnusSpawnedObject spawnedObject)

- Description

Destroys the given object.

The best way to access an object that can be destroyed is to search for the CavrnusSpawnedObjectFlag on a GameObject. This will indicate that the object was spawned via a call to SpawnObject.

You can only destroy an instance that was created via SpawnedObject. If you want to get rid of something that was built-into the scene try changing its "Visibility" Bool Property, with a PostBoolPropertyUpdate.

- Sample

//Coming Soon

Related content

DestroyObject (Unity)
DestroyObject (Unity)
More like this
DestroyObject (Unreal Engine)
DestroyObject (Unreal Engine)
More like this
CavrnusSpawnedObject (.NET)
CavrnusSpawnedObject (.NET)
More like this
CavrnusSpawnedObject (Unity)
CavrnusSpawnedObject (Unity)
More like this
ExitSpace (.NET)
ExitSpace (.NET)
More like this
ExitSpace
More like this