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

This attribute can be used in Tile classes to affect what is displayed in the Tile+Brush Brush inspector (ie in the palette). 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.TptShowAsLabelBrushInspectorAttribute:
Collaboration diagram for TilePlus.TptShowAsLabelBrushInspectorAttribute:

Public Member Functions

 TptShowAsLabelBrushInspectorAttribute (bool useHelpBox=false, bool splitCamelCaseNames=true, string toolTip="")
 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.

Detailed Description

This attribute can be used in Tile classes to affect what is displayed in the Tile+Brush Brush inspector (ie in the palette). 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.

This isn't a subclass of TptAttributeBaseAttribute

Constructor & Destructor Documentation

◆ TptShowAsLabelBrushInspectorAttribute()

TilePlus.TptShowAsLabelBrushInspectorAttribute.TptShowAsLabelBrushInspectorAttribute ( bool useHelpBox = false,
bool splitCamelCaseNames = true,
string toolTip = "" )

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

Parameters
useHelpBoxif true show as infobox instead of a label: splitCamelCaseNames forced false if this is true.
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.TptShowAsLabelBrushInspectorAttribute.m_SplitCamelCaseNames

if true, split CamelCase names

◆ m_Tooltip

readonly string TilePlus.TptShowAsLabelBrushInspectorAttribute.m_Tooltip

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

◆ m_UseHelpBox

readonly bool TilePlus.TptShowAsLabelBrushInspectorAttribute.m_UseHelpBox

if true, use HelpBox instead of Label


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