TypeSelectionMenu Class

Summary

[Editor-Only] A context menu for selecting a System.Type.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["TypeSelectionMenu"] class Type type-node

Syntax

public static class TypeSelectionMenu

Fields

Name Constant Value Summary
UseFullNames
Should full type names be displayed?
static
UseTypeHierarchy
Should options be grouped in sub menus based on their inheritance hierarchy?
static
VisualiseSharedReferences
Should shared references be shown in the GUI?
static

Methods

Name Value Summary
CopyCommonFields(Object, Object) void
Copies the values of all fields in `from` into corresponding fields in `to` as long as they have the same name and compatible types.
static
GetDerivedTypes(Type) List<Type>
Returns a list of all types that inherit from the `baseType`.
static
IsViableType(Type) bool
Is the `type` supported by UnityEngine.SerializeReference fields?
static
Show(SerializedProperty) void
Shows a menu to select which type of object to assign to the `property`.
static