Click or drag to resize
PopupAttributeGetTypePopupContents Method
Gets the popup contents for a string backing field that serializes a type.

Namespace: Candlelight
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static int GetTypePopupContents(
	string backingField,
	IList<Type> typeFilter,
	IList<GUIContent> labels,
	List<Object> values,
	Func<Type, string> labelMaker = null
)

Parameters

backingField
Type: SystemString
A String storing the serialized value.
typeFilter
Type: System.Collections.GenericIListType
A list of all the selectable types in the order they should appear.
labels
Type: System.Collections.GenericIListGUIContent
Labels.
values
Type: System.Collections.GenericListObject
Values.
labelMaker (Optional)
Type: SystemFuncType, String
A method to create label text from a particular Type.

Return Value

Type: Int32
The index of the currently selected type in the list of values.
Remarks
This method empties but does not populate values at run-time.
See Also