Component:ComponentSelector

From Resonite Wiki
Component image 
Component Selector component as seen in the Scene Inspector

The Component Selector is better understood on its page, Complex Types in Components.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
ComponentSelected delegate of identity ComponentSelectionHandler The Sync delegate to call when the component is attached.
ComponentFilter delegate of identity Predicate`1<Type> The type of Components to show in the attacher.
GenericArgumentPrefiller delegate of identity GenericArgumentPrefiller A sync delegate that fills the list of generic arguments for a selected type so it doesn't only ask for a certain type.
_uiRoot Slot The root slot of the UI.
_rootPath String The path that this is navigated to in the component attacher.
_genericType direct SyncType The generic type we are trying to make a generic fill for.
_customGenericTypeLabel field drive of String The label for the generic type we are attaching.
_customGenericTypeColor field drive of ColorX The color for the generic type we are attaching.
_customGenericArguments list of TextField The generic arguments being used for the current Component being attached. See Complex Types in Components.

Sync Delegates

Triggers
Method Name Method type and Arguments. Is the method hidden? Description
OnCancelPressed:ButtonEventHandler ButtonEventHandler Closes the UI and doesn't attach anything.
OnOpenCategoryPressed:ButtonEventHandler`1<String> ButtonEventHandler`1<String> Opens a category of the path argument given.
OpenGenericTypesPressed:ButtonEventHandler`1<String> ButtonEventHandler`1<String> Handles loading the menu for selecting a generic argument screen for a component that has a generic argument like <T>, <A>, or to name a few.
OpenGroupPressed:ButtonEventHandler`1<String> ButtonEventHandler`1<String> Handles bringing up the menu for opening a group of components of the same type (purple buttons).
OnAddComponentPressed:ButtonEventHandler`1<String> ButtonEventHandler`1<String> Triggers when a component is addrd.
OnCreateCustomType:ButtonEventHandler ButtonEventHandler Triggers when a component is made via the attacher with a generic type that isn't in the list of preselected generics.

Usage

See Complex Types in Components.

Examples

See Complex Types in Components.

See Also