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

PlopInstance Class

Automatically added to objects which are plopped using the plop tool making it easy to identify whether an object was plopped.
public sealed class PlopInstance : MonoBehaviour
public sealed class PlopInstance extends MonoBehaviour

Constructors

PlopInstance()
Initializes a new instance of the PlopInstance class

Methods

ToTileData()
Get TileData representation of plop instance.

Properties

Brush
Gets or sets brush which was used to create plop.
Owner
Gets tile system which was active when object was plopped.
PaintedRotation
Gets or sets Zero-based index of simple rotation (0-3) which was used to create plop.
Rotation
Gets or sets zero-based index of actual rotation (0-3) of plop.
VariationIndex
Gets or sets zero-based index of tile variation which was used to create plop.

Remarks

By default this component is removed when upon awakening for game builds (removal does not happen in-editor) though this behaviour can be disabled by deselecting "Remove on Awake" in the inspector.

Inheritance Hierarchy

System.Object
  Object
    Component
      Behaviour
        MonoBehaviour
          Rotorz.Tile.PlopInstance

See Also

Reference