Class HexagonalRuleTileEditor
The Editor for a HexagonalRuleTile.
Inherited Members
UnityEditor.Editor.CreateEditorWithContext(UnityEngine.Object[], UnityEngine.Object)
UnityEditor.Editor.CreateCachedEditorWithContext(UnityEngine.Object, UnityEngine.Object, System.Type, UnityEditor.Editor)
UnityEditor.Editor.CreateCachedEditorWithContext(UnityEngine.Object[], UnityEngine.Object, System.Type, UnityEditor.Editor)
UnityEditor.Editor.CreateCachedEditor(UnityEngine.Object, System.Type, UnityEditor.Editor)
UnityEditor.Editor.CreateCachedEditor(UnityEngine.Object[], System.Type, UnityEditor.Editor)
UnityEditor.Editor.DrawPropertiesExcluding(UnityEditor.SerializedObject, System.String[])
UnityEditor.Editor.OnHeaderGUI()
UnityEditor.Editor.DrawFoldoutInspector(UnityEngine.Object, UnityEditor.Editor)
UnityEditor.Editor.ReloadPreviewInstances()
UnityEditor.Editor.MoveNextTarget()
UnityEditor.Editor.ResetTarget()
UnityEditor.Editor.finishedDefaultHeaderGUI
UnityEngine.ScriptableObject.SetDirty()
UnityEngine.ScriptableObject.CreateInstance<T>()
UnityEngine.Object.GetHashCode()
UnityEngine.Object.Equals(System.Object)
UnityEngine.Object.Instantiate<T>(T)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform, System.Boolean)
UnityEngine.Object.DestroyObject(UnityEngine.Object, System.Single)
UnityEngine.Object.DestroyObject(UnityEngine.Object)
UnityEngine.Object.FindSceneObjectsOfType(System.Type)
UnityEngine.Object.FindObjectsOfType<T>()
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>()
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
Namespace: UnityEditor
Syntax
[CustomEditor(typeof(HexagonalRuleTile), true)]
[CanEditMultipleObjects]
public class HexagonalRuleTileEditor : RuleTileEditor, IPreviewable, IToolModeOwner
Properties
hexTile
The HexagonalRuleTile being edited.
Declaration
public HexagonalRuleTile hexTile { get; }
Property Value
Type | Description |
---|---|
HexagonalRuleTile |
Methods
CreatePreview()
Creates a Preview for the HexagonalRuleTile.
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 HexagonalRuleTile
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 HexagonalRuleTile. |
Overrides
GetRuleGUIBounds(BoundsInt, RuleTile.TilingRule)
Get the GUI bounds for a Rule.
Declaration
public override BoundsInt GetRuleGUIBounds(BoundsInt bounds, RuleTile.TilingRule rule)
Parameters
Type | Name | Description |
---|---|---|
BoundsInt | bounds | Cell bounds of the Rule. |
RuleTile.TilingRule | rule | Rule to get GUI bounds for. |
Returns
Type | Description |
---|---|
BoundsInt | The GUI bounds for a rule. |
Overrides
RuleMatrixOnGUI(RuleTile, Rect, BoundsInt, RuleTile.TilingRule)
Draws a Rule Matrix for the given Rule for a HexagonalRuleTile.
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. |