C# Class FullInspector.Internal.fiDisplayNameMapper

Helpers for mapping a property name to a display name that should be shown in the inspector.
This is essentially a reimplementation for UnityEditor.ObjectNames.NicifyVariableName, but DisplayNameMapper allocates less frequently.
Mostra file Open project: jacobdufault/fullinspector

Public Methods

Method Description
Map ( string propertyName ) : string

Convert the given property name into a name that will be used for the Unity inspector. For example, Unity by default converts "fieldValue" into "Field Value".

Private Methods

Method Description
MapInternal ( string propertyName ) : string

Computes the actual mapped name. We try to not call this function as it allocates a fair amount.

ShouldInsertSpace ( int currentIndex, string str ) : bool

Method Details

Map() public static method

Convert the given property name into a name that will be used for the Unity inspector. For example, Unity by default converts "fieldValue" into "Field Value".
public static Map ( string propertyName ) : string
propertyName string
return string