Class AdvancedRuleOverrideTileEditor
The Editor for an AdvancedRuleOverrideTileEditor.
Inheritance
Inherited Members
Namespace: UnityEditor
Syntax
[CustomEditor(typeof(AdvancedRuleOverrideTile))]
public class AdvancedRuleOverrideTileEditor : RuleOverrideTileEditor, IPreviewable, IToolModeOwner
Properties
overrideTile
The AdvancedRuleOverrideTile being edited.
Declaration
public AdvancedRuleOverrideTile overrideTile { get; }
Property Value
Type | Description |
---|---|
AdvancedRuleOverrideTile |
Methods
DrawRule(Rect, RuleTile.TilingRuleOutput, Boolean, RuleTile.TilingRule, Boolean)
Draw a Rule Override for the AdvancedRuleOverrideTileEditor
Declaration
public void DrawRule(Rect rect, RuleTile.TilingRuleOutput rule, bool isOverride, RuleTile.TilingRule originalRule, bool isMissing)
Parameters
Type | Name | Description |
---|---|---|
Rect | rect | Rect to draw the Rule in |
RuleTile.TilingRuleOutput | rule | The Rule Override to draw |
Boolean | isOverride | Whether the original Rule is being overridden |
RuleTile.TilingRule | originalRule | Original Rule to override |
Boolean | isMissing | Whether the original Rule is missing |
DrawRuleElement(Rect, Int32, Boolean, Boolean)
Draws the Rule element for the Rule list
Declaration
public void DrawRuleElement(Rect rect, int index, bool active, bool focused)
Parameters
Type | Name | Description |
---|---|---|
Rect | rect | Rect to draw the Rule Element in |
Int32 | index | Index of the Rule Element to draw |
Boolean | active | Whether the Rule Element is active |
Boolean | focused | Whether the Rule Element is focused |
DrawRulesHeader(Rect)
Draws the Header for the Rule list
Declaration
public void DrawRulesHeader(Rect rect)
Parameters
Type | Name | Description |
---|---|---|
Rect | rect | Rect to draw the header in |
GetRuleElementHeight(Int32)
Returns the height for an indexed Rule Element
Declaration
public float GetRuleElementHeight(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | Index of the Rule Element |
Returns
Type | Description |
---|---|
Single | Height of the indexed Rule Element |
OnEnable()
OnEnable for the AdvancedRuleOverrideTileEditor
Declaration
public override void OnEnable()
Overrides
OnInspectorGUI()
Draws the Inspector GUI for the AdvancedRuleOverrideTileEditor
Declaration
public override void OnInspectorGUI()