![]() |
TilePlus Version 5
Unity3D Tilemap Extension
|
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...


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. | |
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
| TilePlus.TptShowAsLabelBrushInspectorAttribute.TptShowAsLabelBrushInspectorAttribute | ( | bool | useHelpBox = false, |
| bool | splitCamelCaseNames = true, | ||
| string | toolTip = "" ) |
Show this field or property as a label in the Selection Inspector.
| useHelpBox | if true show as infobox instead of a label: splitCamelCaseNames forced false if this is true. |
| splitCamelCaseNames | if true, split camelcase names |
| toolTip | Optional tooltip. On a field, overrides any [Tooltip] attr on this field. |
| readonly bool TilePlus.TptShowAsLabelBrushInspectorAttribute.m_SplitCamelCaseNames |
if true, split CamelCase names
| readonly string TilePlus.TptShowAsLabelBrushInspectorAttribute.m_Tooltip |
Tooltip: overrides any [tooltip] attribute on this member if it's a field.
| readonly bool TilePlus.TptShowAsLabelBrushInspectorAttribute.m_UseHelpBox |
if true, use HelpBox instead of Label