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

This attribute can be used in Tile classes show an object field. More...

Inheritance diagram for TilePlus.TptShowObjectFieldAttribute:
Collaboration diagram for TilePlus.TptShowObjectFieldAttribute:

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.

Detailed Description

This attribute can be used in Tile classes show an object field.

Constructor & Destructor Documentation

◆ TptShowObjectFieldAttribute()

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.

Parameters
desiredTypeType to inspect from typeof
allowSceneObjectsSet false to only allow assets.
addInspectorButtonTrue to show an inspector button.
updateTpLibOptional, for fields only (incl enums/obj field). Use when TpLib needs to be updated. See the m_Tag field in TilePlusBase for example.
hasSubassetset true if the Object implements IActionPlugin and provides a UnityEngine.Object reference.

Member Data Documentation

◆ m_AllowSceneObjects

readonly bool TilePlus.TptShowObjectFieldAttribute.m_AllowSceneObjects

Allow scene objects.

◆ m_DesiredType

readonly Type TilePlus.TptShowObjectFieldAttribute.m_DesiredType

Type to inspect.

◆ m_HasSubasset

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.

◆ m_InspectorButton

readonly bool TilePlus.TptShowObjectFieldAttribute.m_InspectorButton

Add inspector button.

◆ m_UpdateTpLib

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.


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