Class ObjectSelector
VisualElement used to provide a consistent UI for selecting an object referenced by error messages.
public sealed class ObjectSelector : VisualElement
- Inheritance
-
ObjectSelector
Methods
TryCreate(ErrorReport, ObjectReference, out ObjectSelector)
Attempt to resolve an ObjectReference to a unity object and create a UI to display it.
public static bool TryCreate(ErrorReport report, ObjectReference reference, out ObjectSelector selector)
Parameters
reportErrorReportError report this selector is referencing (used to find the avatar root)
referenceObjectReferenceObject reference to represent
selectorObjectSelectorThe ObjectSelector to be created