Interface IProvidesDirectSelection
Provide access to direct selection
Namespace: Unity.Labs.EditorXR.Interfaces
Syntax
public interface IProvidesDirectSelection : IFunctionalityProvider
Methods
GetDirectSelection()
Returns a dictionary of direct selections
Declaration
Dictionary<Transform, DirectSelectionData> GetDirectSelection()
Returns
Type | Description |
---|---|
Dictionary<Transform, DirectSelectionData> | Dictionary (K,V) where K = rayOrigin used to select the object and V = info about the direct selection |
ResetDirectSelectionState()
Calls OnResetDirectSelectionState on all subscribers to ResetDirectSelectionState
Declaration
void ResetDirectSelectionState()
SubscribeToResetDirectSelectionState(Action)
Subscribe to ResetDirectSelectionState
Declaration
void SubscribeToResetDirectSelectionState(Action callback)
Parameters
Type | Name | Description |
---|---|---|
Action | callback | The method that will be called when resetting direct selection state |
UnsubscribeFromResetDirectSelectionState(Action)
Unsubscribe from ResetDirectSelectionState
Declaration
void UnsubscribeFromResetDirectSelectionState(Action callback)
Parameters
Type | Name | Description |
---|---|---|
Action | callback | The method that was originally subscribed |