Class BuildInspectorEvent
- Namespace
- MonkeyLoader.Resonite.UI
- Assembly
- MonkeyLoader.Resonite.Integration.dll
Represents the base class for the events fired during construction of a FrooxEngine.WorkerInspector
public abstract class BuildInspectorEvent : BuildUIEvent
- Inheritance
-
BuildInspectorEvent
- Derived
- Inherited Members
Constructors
BuildInspectorEvent(UIBuilder, Worker, bool, bool, Predicate<ISyncMember>?)
Allows adding custom inspector elements to the FrooxEngine.WorkerInspector being build.
protected BuildInspectorEvent(UIBuilder ui, Worker worker, bool allowDuplicate, bool allowDestroy, Predicate<ISyncMember>? memberFilter)
Parameters
ui
UIBuilderThe FrooxEngine.UIX.UIBuilder used to build the inspector.
worker
WorkerThe Worker for which an inspector is being build.
allowDuplicate
boolWhether the
worker
is allowed to be duplicated.allowDestroy
boolWhether the
worker
is allowed to be destroyed.memberFilter
Predicate<ISyncMember>A predicate that determines if a member should be shown.
Properties
AllowDestroy
Gets whether the Worker is allowed to be destroyed.
public bool AllowDestroy { get; }
Property Value
AllowDuplicate
Gets whether the Worker is allowed to be duplicated.
public bool AllowDuplicate { get; }
Property Value
MemberFilter
Gets the predicate that determines if a member should be shown, which was passed into the inspector UI building method initially.
public Predicate<ISyncMember>? MemberFilter { get; }
Property Value
- Predicate<ISyncMember>
Worker
Gets the FrooxEngine.Worker for which an inspector is being build.
public Worker Worker { get; }
Property Value
- Worker
Methods
FilterMember(ISyncMember)
Determines whether the given member should be shown.
public bool FilterMember(ISyncMember member)
Parameters
member
ISyncMemberThe member to test.
Returns
- bool
true
if the member should be shown; otherwise,false
.
Remarks
This uses the MemberFilter or just returns true
otherwise.