Class IsometricRuleTileEditor
The Editor for an IsometricRuleTile.
Inherited Members
Namespace: UnityEditor
Syntax
[CustomEditor(typeof(IsometricRuleTile), true)]
[CanEditMultipleObjects]
public class IsometricRuleTileEditor : RuleTileEditor, IPreviewable, IToolModeOwner
Methods
ContainsMousePosition(Rect)
Determines the current mouse position is within the given Rect.
Declaration
public override bool ContainsMousePosition(Rect rect)
Parameters
Type | Name | Description |
---|---|---|
Rect | rect | Rect to test mouse position for. |
Returns
Type | Description |
---|---|
Boolean | True if the current mouse position is within the given Rect. False otherwise. |
Overrides
CreatePreview()
Creates a Preview for the IsometricRuleTile.
Declaration
protected override void CreatePreview()
Overrides
GetArrowIndex(Vector3Int)
Gets the index for a Rule with the HexagonalRuleTile to display an arrow.
Declaration
public override int GetArrowIndex(Vector3Int position)
Parameters
Type | Name | Description |
---|---|---|
Vector3Int | position | The adjacent position of the arrow. |
Returns
Type | Description |
---|---|
Int32 | Returns the index for a Rule with the HexagonalRuleTile to display an arrow. |
Overrides
GetMatrixSize(BoundsInt)
Gets the GUI matrix size for a Rule of a IsometricRuleTile
Declaration
public override Vector2 GetMatrixSize(BoundsInt bounds)
Parameters
Type | Name | Description |
---|---|---|
BoundsInt | bounds | Cell bounds of the Rule. |
Returns
Type | Description |
---|---|
Vector2 | Returns the GUI matrix size for a Rule of a IsometricRuleTile. |
Overrides
OnPreviewSettings()
Updates preview settings for the IsometricRuleTile.
Declaration
public override void OnPreviewSettings()
Overrides
RuleMatrixOnGUI(RuleTile, Rect, BoundsInt, RuleTile.TilingRule)
Draws a Rule Matrix for the given Rule for a IsometricRuleTile.
Declaration
public override void RuleMatrixOnGUI(RuleTile tile, Rect rect, BoundsInt bounds, RuleTile.TilingRule tilingRule)
Parameters
Type | Name | Description |
---|---|---|
RuleTile | tile | Tile to draw rule for. |
Rect | rect | GUI Rect to draw rule at. |
BoundsInt | bounds | Cell bounds of the Rule. |
RuleTile.TilingRule | tilingRule | Rule to draw Rule Matrix for. |