Class IsometricRuleTileEditor
The Editor for an IsometricRuleTile.
Inheritance
Object
ScriptableObject
Editor
IsometricRuleTileEditor
Inherited Members
Editor.CreateEditorWithContext(Object[], Object)
Editor.CreateEditor(Object)
Editor.CreateEditor(Object[])
Editor.DrawDefaultInspector()
Editor.Repaint()
Editor.CreateInspectorGUI()
Editor.RequiresConstantRepaint()
Editor.DrawHeader()
Editor.OnHeaderGUI()
Editor.ShouldHideOpenButton()
Editor.DrawFoldoutInspector(Object, ref Editor)
Editor.GetPreviewTitle()
Editor.OnInteractivePreviewGUI(Rect, GUIStyle)
Editor.GetInfoString()
Editor.DrawPreview(Rect)
Editor.ReloadPreviewInstances()
Editor.UseDefaultMargins()
Editor.MoveNextTarget()
Editor.ResetTarget()
Editor.target
Editor.targets
Editor.serializedObject
Editor.finishedDefaultHeaderGUI
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetInstanceID()
Object.GetHashCode()
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.ToString()
Object.name
Object.hideFlags
Assembly: Unity.2D.Tilemap.Extras.Editor.dll
Syntax
[CustomEditor(typeof(IsometricRuleTile), true)]
[CanEditMultipleObjects]
public class IsometricRuleTileEditor : RuleTileEditor
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 |
bool |
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 |
int |
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
UnityEditor.Editor.OnPreviewSettings()
RuleMatrixOnGUI(RuleTile, Rect, BoundsInt, 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.
|
Overrides
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.