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

BrushPropertyAttribute Class

This attribute can be applied to brush properties in custom scripts to specify whether alias or master brushes can be selected when using brush picker interface via the inspector.
public sealed class BrushPropertyAttribute : PropertyAttribute
public sealed class BrushPropertyAttribute extends PropertyAttribute

Constructors

BrushPropertyAttribute(Boolean, Boolean)
Initializes a new instance of the BrushPropertyAttribute class.

Methods

Equals(Object)
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.)
GetHashCode()
Returns the hash code for this instance.
(Inherited from Attribute.)
IsDefaultAttribute()
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute.)
Match(Object)
When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute.)

Properties

AllowAlias
Gets a value indicating whether alias brushes can be selected.
AllowMaster
Gets a value indicating whether master brushes can be selected.
order
(Inherited from PropertyAttribute.)
TypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute.)

Examples

The following shows how to prevent selection of alias brushes:

using Rotorz.Tile;
using UnityEngine;

public class ExampleBehaviour : MonoBehaviour {

    [BrushProperty(false)]
    public Brush someBrush;

}
// Assets/ExampleBehaviour.js
#pragma strict
import Rotorz.Tile;

@BrushProperty(false)
var someBrush:Brush;

Inheritance Hierarchy

System.Object
  System.Attribute
    PropertyAttribute
      Rotorz.Tile.BrushPropertyAttribute

See Also

Reference