Interface ISpawnable
Interface for spawnable entities managed by an ObjectSpawner. Provides access to spawner, settings, network object, unique ID, and despawn logic.
public interface ISpawnable
Properties
ID
The unique identifier for this spawnable entity.
long ID { get; }
Property Value
NetworkObject
The network object associated with this entity for network synchronization.
NetworkObject NetworkObject { get; }
Property Value
- NetworkObject
ObjectSpawner
The ObjectSpawner responsible for spawning and managing this entity.
ObjectSpawner ObjectSpawner { get; set; }
Property Value
SpawnableSettings
The settings used to configure this spawnable entity.
SpawnableSettings SpawnableSettings { get; set; }
Property Value
Methods
Despawn()
Despawns the entity, removing it from the game world and network.
void Despawn()