Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

- 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, use either a No-Code Component or with a PostBoolPropertyUpdate.

- Sample

//Coming Soon
  • No labels