Class InspectorMemberActionsMenuItemsGenerationEvent
- Namespace
- MonkeyLoader.Resonite.UI.Inspectors
- Assembly
- MonkeyLoader.Resonite.Integration.dll
Represents the event data for the FrooxEngine.InspectorMemberActions FrooxEngine.ContextMenu items generation event.
public sealed class InspectorMemberActionsMenuItemsGenerationEvent : ContextMenuItemsGenerationEvent<InspectorMemberActions>
- Inheritance
-
ContextMenuItemsGenerationEvent<InspectorMemberActions>InspectorMemberActionsMenuItemsGenerationEvent
- Inherited Members
Constructors
InspectorMemberActionsMenuItemsGenerationEvent(ContextMenu)
Creates a new FrooxEngine.ContextMenu items generation event with the given
contextMenu
and its active FrooxEngine.User.
public InspectorMemberActionsMenuItemsGenerationEvent(ContextMenu contextMenu)
Parameters
contextMenu
ContextMenuThe FrooxEngine.ContextMenu being summoned.
Remarks
This method dynamically uses the best registered concrete derived event type
for the
,
falling back to the concrete ContextMenuItemsGenerationEvent<T>.contextMenu
.CurrentSummoner
Exceptions
- ArgumentNullException
When the
contextMenu
is null.- ArgumentException
When the
contextMenu
's active FrooxEngine.User is null.
Properties
BlendshapeIndex
Gets the index of the Target in the SkinnedMesh's blend shapes.
public int? BlendshapeIndex { get; }
Property Value
ButtonEventData
Gets the data for the button press that triggered opening the ContextMenu.
[Obsolete("Not available anymore.")]
public ButtonEventData ButtonEventData { get; }
Property Value
- ButtonEventData
HasSkinnedMesh
Gets whether the Target is on a FrooxEngine.SkinnedMeshRenderer.
public bool HasSkinnedMesh { get; }
Property Value
- bool
true if SkinnedMesh and BlendShapeIndex are not null; otherwise, false.
MemberActions
Gets the FrooxEngine.InspectorMemberActions that the ContextMenu is being summoned by.
[Obsolete("Use Summoner instead.")]
public InspectorMemberActions MemberActions { get; }
Property Value
- InspectorMemberActions
SkinnedMesh
Gets the FrooxEngine.SkinnedMeshRenderer that the Target is a blend shape for.
public SkinnedMeshRenderer? SkinnedMesh { get; }
Property Value
- SkinnedMeshRenderer
Slot
Gets the Target's parent FrooxEngine.Slot.
public Slot? Slot { get; }
Property Value
- Slot
Remarks
This may be null
if Target's parent is a FrooxEngine.UserComponent.
Target
Gets the target FrooxEngine.ISyncMember of the FrooxEngine.InspectorMemberActions that the ContextMenu was opened for.
public ISyncMember Target { get; }
Property Value
- ISyncMember
User
Gets the Target's Slot's ActiveUser, or its parent FrooxEngine.User if it belongs to a FrooxEngine.UserComponent.
public User? User { get; }
Property Value
- User