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

This attribute can be used in Tile classes to affect what is displayed in the Tile++Brush selection inspector. For a field or property, the value returned is displayed with ToString, so whatever you tag with this must have a ToString() method. This isn't an issue for most types of fields or properties that you might use, but keep it in mind. Sometimes you can create a property just to show it as a label, based on other values in your Tile class. More...

Inheritance diagram for TilePlus.TptShowAsLabelSelectionInspectorAttribute:
Collaboration diagram for TilePlus.TptShowAsLabelSelectionInspectorAttribute:

Public Member Functions

 TptShowAsLabelSelectionInspectorAttribute (bool useHelpBox=false, bool splitCamelCaseNames=true, string toolTip="", SpaceMode spacemode=SpaceMode.None, ShowMode showMode=ShowMode.Always, string visibilityProperty="")
 Show this field or property as a label in the Selection Inspector.

Public Attributes

readonly bool m_UseHelpBox
 if true, use HelpBox instead of Label
readonly bool m_SplitCamelCaseNames
 if true, split CamelCase names
readonly string m_Tooltip
 Tooltip: overrides any [tooltip] attribute on this member if it's a field.
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 can be used in Tile classes to affect what is displayed in the Tile++Brush selection inspector. For a field or property, the value returned is displayed with ToString, so whatever you tag with this must have a ToString() method. This isn't an issue for most types of fields or properties that you might use, but keep it in mind. Sometimes you can create a property just to show it as a label, based on other values in your Tile class.

Constructor & Destructor Documentation

◆ TptShowAsLabelSelectionInspectorAttribute()

TilePlus.TptShowAsLabelSelectionInspectorAttribute.TptShowAsLabelSelectionInspectorAttribute ( bool useHelpBox = false,
bool splitCamelCaseNames = true,
string toolTip = "",
SpaceMode spacemode = SpaceMode::None,
ShowMode showMode = ShowMode::Always,
string visibilityProperty = "" )

Show this field or property as a label in the Selection Inspector.

Parameters
useHelpBoxif true show as infobox instead of a label
splitCamelCaseNamesif true, split camelcase names
toolTipOptional tooltip. On a field, overrides any [Tooltip] attr on this field.

Member Data Documentation

◆ m_SplitCamelCaseNames

readonly bool TilePlus.TptShowAsLabelSelectionInspectorAttribute.m_SplitCamelCaseNames

if true, split CamelCase names

◆ m_Tooltip

readonly string TilePlus.TptShowAsLabelSelectionInspectorAttribute.m_Tooltip

Tooltip: overrides any [tooltip] attribute on this member if it's a field.

◆ m_UseHelpBox

readonly bool TilePlus.TptShowAsLabelSelectionInspectorAttribute.m_UseHelpBox

if true, use HelpBox instead of Label


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