Runtime Spawner 1.5.0
Generic Runtime spawn and instance pooling system for spawning random AI agents around a map. Works with ANY AI system easily.
Loading...
Searching...
No Matches
MegaCrush.Spawner.ISpawnHandle Interface Reference

Represents a handle returned by an IObjectFactory after spawning an object. More...

Inheritance diagram for MegaCrush.Spawner.ISpawnHandle:
MegaCrush.Spawner.BasicSpawnHandle

Public Member Functions

bool TryGetNetworkComponent< T > (out T component)
 Attempts to retrieve a component of type T from the instance.
 
void Despawn ()
 Destroys or despawns the instance according to the factory’s configured behavior.
 

Properties

GameObject Instance [get]
 The spawned GameObject instance.
 
bool IsNetworked [get]
 Indicates whether the instance represents a networked object.
 

Detailed Description

Represents a handle returned by an IObjectFactory after spawning an object.

Member Function Documentation

◆ Despawn()

void MegaCrush.Spawner.ISpawnHandle.Despawn ( )

Destroys or despawns the instance according to the factory’s configured behavior.

Implemented in MegaCrush.Spawner.BasicSpawnHandle.

◆ TryGetNetworkComponent< T >()

bool MegaCrush.Spawner.ISpawnHandle.TryGetNetworkComponent< T > ( out T component)

Attempts to retrieve a component of type T from the instance.

Template Parameters
TComponent type to search for.
Parameters
componentOutput component reference.
Returns
true if the component exists; otherwise false.

Implemented in MegaCrush.Spawner.BasicSpawnHandle.

Type Constraints
T :Component 

Property Documentation

◆ Instance

GameObject MegaCrush.Spawner.ISpawnHandle.Instance
get

The spawned GameObject instance.

Implemented in MegaCrush.Spawner.BasicSpawnHandle.

◆ IsNetworked

bool MegaCrush.Spawner.ISpawnHandle.IsNetworked
get

Indicates whether the instance represents a networked object.

Implemented in MegaCrush.Spawner.BasicSpawnHandle.


The documentation for this interface was generated from the following file: