Rotorz Tile System Icon
Rotorz Tile System for Unity
API Reference
Available on the Unity Asset Store
TOC

DefaultRuntimeObjectFactory Class

The default object factory that is used to create and destroy tile game objects at runtime.
public sealed class DefaultRuntimeObjectFactory : IObjectFactory
public sealed class DefaultRuntimeObjectFactory
	implements IObjectFactory

Constructors

DefaultRuntimeObjectFactory()
Initializes a new instance of the DefaultRuntimeObjectFactory class

Methods

DestroyObject(GameObject, IObjectFactoryContext)
Destroy object instance.
InstantiatePrefab(GameObject, IObjectFactoryContext)
Create object instance from prefab.

Properties

Current
Gets or sets the current factory for creating and destroying tile game objects at runtime.

Remarks

Objects are created using Object.Instantiate and are destroyed using Object.Destroy.

A custom object factory can be created by providing a custom implementation of IObjectFactory which can then be activated by assigning an instance to Current.

Inheritance Hierarchy

System.Object
  Rotorz.Tile.DefaultRuntimeObjectFactory

See Also

Reference