![]() |
TilePlus Version 5
Unity3D Tilemap Extension
|
This attribute can be used in Tile classes show an object field. More...


Public Member Functions | |
| TptShowObjectFieldAttribute (Type desiredType, bool allowSceneObjects=true, bool addInspectorButton=false, SpaceMode spacemode=SpaceMode.None, ShowMode showMode=ShowMode.Always, string visibilityProperty="", bool updateTpLib=false, bool hasSubasset=false) | |
| Show an object field. | |
Public Attributes | |
| readonly Type | m_DesiredType |
| Type to inspect. | |
| readonly bool | m_AllowSceneObjects |
| Allow scene objects. | |
| readonly bool | m_InspectorButton |
| Add inspector button. | |
| readonly bool | m_UpdateTpLib |
| Optional, for fields only (incl enums/obj field). Use when TpLib needs to be updated. See the m_Tag field in TilePlusBase for example. | |
| readonly bool | m_HasSubasset |
| True if a subasset should be inspectable. the asset must implement IActionPlugin and provide a reference as specified in that interface. | |
| 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. | |
This attribute can be used in Tile classes show an object field.
| TilePlus.TptShowObjectFieldAttribute.TptShowObjectFieldAttribute | ( | Type | desiredType, |
| bool | allowSceneObjects = true, | ||
| bool | addInspectorButton = false, | ||
| SpaceMode | spacemode = SpaceMode::None, | ||
| ShowMode | showMode = ShowMode::Always, | ||
| string | visibilityProperty = "", | ||
| bool | updateTpLib = false, | ||
| bool | hasSubasset = false ) |
Show an object field.
| desiredType | Type to inspect from typeof |
| allowSceneObjects | Set false to only allow assets. |
| addInspectorButton | True to show an inspector button. |
| updateTpLib | Optional, for fields only (incl enums/obj field). Use when TpLib needs to be updated. See the m_Tag field in TilePlusBase for example. |
| hasSubasset | set true if the Object implements IActionPlugin and provides a UnityEngine.Object reference. |
| readonly bool TilePlus.TptShowObjectFieldAttribute.m_AllowSceneObjects |
Allow scene objects.
| readonly Type TilePlus.TptShowObjectFieldAttribute.m_DesiredType |
Type to inspect.
| readonly bool TilePlus.TptShowObjectFieldAttribute.m_HasSubasset |
True if a subasset should be inspectable. the asset must implement IActionPlugin and provide a reference as specified in that interface.
| readonly bool TilePlus.TptShowObjectFieldAttribute.m_InspectorButton |
Add inspector button.
| readonly bool TilePlus.TptShowObjectFieldAttribute.m_UpdateTpLib |
Optional, for fields only (incl enums/obj field). Use when TpLib needs to be updated. See the m_Tag field in TilePlusBase for example.