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

This attribute is used to display an invoke button for a method. Note that if the access type for the method isn't public or protected then it'll be ignored. More...

Inheritance diagram for TilePlus.TptShowMethodAsButtonAttribute:
Collaboration diagram for TilePlus.TptShowMethodAsButtonAttribute:

Public Member Functions

 TptShowMethodAsButtonAttribute (string message=null, SpaceMode spaceMode=SpaceMode.None, ShowMode showMode=ShowMode.Always, string visibilityProperty="")
 Create ShowMethodAsButton Attr.

Public Attributes

readonly string m_Message
 Optional message to show in HelpBox just above the button.
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.

Additional Inherited Members

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 display an invoke button for a method. Note that if the access type for the method isn't public or protected then it'll be ignored.

Constructor & Destructor Documentation

◆ TptShowMethodAsButtonAttribute()

TilePlus.TptShowMethodAsButtonAttribute.TptShowMethodAsButtonAttribute ( string message = null,
SpaceMode spaceMode = SpaceMode::None,
ShowMode showMode = ShowMode::Always,
string visibilityProperty = "" )

Create ShowMethodAsButton Attr.

Parameters
messageMessage to show the user
spaceModespaces or not
showModewhen-to-show control
visibilityPropertystring with property name when using a prop to control showing

Member Data Documentation

◆ m_Message

readonly string TilePlus.TptShowMethodAsButtonAttribute.m_Message

Optional message to show in HelpBox just above the button.


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