Class AdvancedRuleOverrideTileEditor
The Editor for an AdvancedRuleOverrideTileEditor.
Inheritance
Inherited Members
Namespace: UnityEditor
Assembly: Unity.2D.Tilemap.Extras.Editor.dll
Syntax
[CustomEditor(typeof(AdvancedRuleOverrideTile))]
public class AdvancedRuleOverrideTileEditor : RuleOverrideTileEditorProperties
overrideTile
The AdvancedRuleOverrideTile being edited.
Declaration
public AdvancedRuleOverrideTile overrideTile { get; }Property Value
| Type | Description | 
|---|---|
| AdvancedRuleOverrideTile | 
Methods
DrawRule(Rect, TilingRuleOutput, bool, TilingRule, bool)
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 | 
| bool | isOverride | Whether the original Rule is being overridden | 
| RuleTile.TilingRule | originalRule | Original Rule to override | 
| bool | isMissing | Whether the original Rule is missing | 
DrawRuleElement(Rect, int, bool, bool)
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 | 
| int | index | Index of the Rule Element to draw | 
| bool | active | Whether the Rule Element is active | 
| bool | 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(int)
Returns the height for an indexed Rule Element
Declaration
public float GetRuleElementHeight(int index)Parameters
| Type | Name | Description | 
|---|---|---|
| int | index | Index of the Rule Element | 
Returns
| Type | Description | 
|---|---|
| float | 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()