TilePlus Version 5
Unity3D Tilemap Extension
Loading...
Searching...
No Matches
TilePlus.TptShowCustomGUIAttribute Class Reference

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...

Inheritance diagram for TilePlus.TptShowCustomGUIAttribute:
Collaboration diagram for TilePlus.TptShowCustomGUIAttribute:

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ TptShowCustomGUIAttribute()

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.


The documentation for this class was generated from the following file: