![]() |
TilePlus Version 5
Unity3D Tilemap Extension
|
This attribute is used to provide customGUI for a tile class. note that the method needs to be: [TptShowCustomGUI] public CustomGuiReturn BaseGui(GUISkin skin, Vector2 buttonSize, bool inPrefab) The return value should be an instance of CustomGuiReturn. See TilePlusBase, TpFlexAnimatedTile, etc for an example. NOTE access has to be public or protected. More...


Public Member Functions | |
| TptShowCustomGUIAttribute (SpaceMode spaceMode=SpaceMode.None, ShowMode showMode=ShowMode.Always, string visibilityProperty="") | |
| Create ShowCustomGUI attr; Note that method should return true if a change has been made or false if not. If the method has a void return type then nothing can happen but it's not an error. | |
Additional Inherited Members | |
| Public Attributes inherited from TilePlus.TptAttributeBaseAttribute | |
| SpaceMode | m_SpaceMode |
| Space or draw-line control. | |
| ShowMode | m_ShowMode |
| Controls how to show the item that the attr is attached to. | |
| string | m_VisibilityProperty |
| If showMode == Property, the name of a property to control visibility. | |
| Protected Member Functions inherited from TilePlus.TptAttributeBaseAttribute | |
| TptAttributeBaseAttribute (SpaceMode spaceMode=SpaceMode.None, ShowMode showMode=ShowMode.Always, string visibilityProperty="") | |
| Constructor for the Tpt base attribute. | |
This attribute is used to provide customGUI for a tile class. note that the method needs to be: [TptShowCustomGUI] public CustomGuiReturn BaseGui(GUISkin skin, Vector2 buttonSize, bool inPrefab) The return value should be an instance of CustomGuiReturn. See TilePlusBase, TpFlexAnimatedTile, etc for an example. NOTE access has to be public or protected.
| TilePlus.TptShowCustomGUIAttribute.TptShowCustomGUIAttribute | ( | SpaceMode | spaceMode = SpaceMode::None, |
| ShowMode | showMode = ShowMode::Always, | ||
| string | visibilityProperty = "" ) |
Create ShowCustomGUI attr; Note that method should return true if a change has been made or false if not. If the method has a void return type then nothing can happen but it's not an error.