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

Current Property

Gets or sets the current factory for creating and destroying tile game objects in editor.
public static IObjectFactory Current { get; set; }
public static function get Current() : IObjectFactory
public static function set Current(value : IObjectFactory)

Property Value

Examples

Activating a custom editor object factory:

[InitializeOnLoad]
public class CustomEditorObjectFactory : IObjectFactory {
    // Implement IObjectFactory here...

    static CustomEditorObjectFactory() {
        // Activate the object factory asap!
        DefaultEditorObjectFactory.Current = new CustomEditorObjectFactory();
    }
}
@InitializeOnLoad
class CustomEditorObjectFactory implements IObjectFactory {
    // Implement IObjectFactory here...

    static function CustomEditorObjectFactory() {
        // Activate the object factory asap!
        DefaultEditorObjectFactory.Current = new CustomEditorObjectFactory();
    }
}

See Also

Reference