Class RuleOverrideTileEditor
Inheritance
RuleOverrideTileEditor
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Syntax
[CustomEditor(typeof(RuleOverrideTile))]
public class RuleOverrideTileEditor : Editor, IPreviewable, IToolModeOwner
Fields
k_GameObjectElementHeight
Declaration
public static float k_GameObjectElementHeight
Field Value
k_PaddingBetweenRules
Declaration
public static float k_PaddingBetweenRules
Field Value
k_SpriteElementHeight
Declaration
public static float k_SpriteElementHeight
Field Value
m_GameObjectList
Declaration
public ReorderableList m_GameObjectList
Field Value
Type |
Description |
UnityEditorInternal.ReorderableList |
|
m_GameObjects
Declaration
public List<KeyValuePair<GameObject, GameObject>> m_GameObjects
Field Value
m_SpriteList
Declaration
public ReorderableList m_SpriteList
Field Value
Type |
Description |
UnityEditorInternal.ReorderableList |
|
m_Sprites
Declaration
public List<KeyValuePair<Sprite, Sprite>> m_Sprites
Field Value
Properties
overrideTile
Declaration
public RuleOverrideTile overrideTile { get; }
Property Value
ruleTileEditor
Declaration
public RuleTileEditor ruleTileEditor { get; }
Property Value
Methods
DrawCustomFields()
Declaration
public void DrawCustomFields()
DrawGameObjectElement(Rect, Int32, Boolean, Boolean)
Declaration
public void DrawGameObjectElement(Rect rect, int index, bool selected, bool focused)
Parameters
Declaration
public void DrawGameObjectListHeader(Rect rect)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
DrawSpriteElement(Rect, Int32, Boolean, Boolean)
Declaration
public void DrawSpriteElement(Rect rect, int index, bool selected, bool focused)
Parameters
Declaration
public void DrawSpriteListHeader(Rect rect)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
DrawTileField()
Declaration
public void DrawTileField()
GetGameObjectElementHeight(Int32)
Declaration
public float GetGameObjectElementHeight(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
GetSpriteElementHeight(Int32)
Declaration
public float GetSpriteElementHeight(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
HasPreviewGUI()
Declaration
public override bool HasPreviewGUI()
Returns
Overrides
OnDisable()
Declaration
public virtual void OnDisable()
OnEnable()
Declaration
public virtual void OnEnable()
OnInspectorGUI()
Declaration
public override void OnInspectorGUI()
Overrides
OnPreviewGUI(Rect, GUIStyle)
Declaration
public override void OnPreviewGUI(Rect r, GUIStyle background)
Parameters
Overrides
OnPreviewSettings()
Declaration
public override void OnPreviewSettings()
Overrides
RenderStaticPreview(String, Object[], Int32, Int32)
Declaration
public override Texture2D RenderStaticPreview(string assetPath, Object[] subAssets, int width, int height)
Parameters
Returns
Overrides
SaveInstanceTileAsset()
Declaration
public void SaveInstanceTileAsset()
SaveTile()
Declaration
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.