StringMemberHelper

Helper class to handle strings for labels and other similar purposes. Allows for a static string, or for refering to string member fields, properties or methods, by name, if the first character is a '$'.

namespace Sirenix.OdinInspector.Editor
{
public class StringMemberHelper
}

Requirements

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector
Version: 1.0.6.1

Constructors

Definition Description
StringMemberHelper(Type, string, bool, bool) Creates a StringMemberHelper to get a display string.
StringMemberHelper(Type, string, ref string, bool, bool) Creates a StringMemberHelper to get a display string.

Properties

Return Type Definition Description
string ErrorMessage If any error occurred while looking for members, it will be stored here.
bool IsDynamicString Gets a value indicating whether or not the string is retrived from a from a member.
Type ObjectType Gets the type of the object.

Methods

Return Type Definition Description
string ForceGetString(Object) Gets the string from the StringMemberHelper.
string GetString(InspectorProperty) Gets the string from the StringMemberHelper. Only updates the string buffer in Layout events.
string GetString(IPropertyValueEntry) Gets the string from the StringMemberHelper. Only updates the string buffer in Layout events.
string GetString(Object) Gets the string from the StringMemberHelper. Only updates the string buffer in Layout events.