Table of Contents

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 UIBuilder

The FrooxEngine.UIX.UIBuilder used to build the inspector.

worker Worker

The Worker for which an inspector is being build.

allowDuplicate bool

Whether the worker is allowed to be duplicated.

allowDestroy bool

Whether 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

bool

AllowDuplicate

Gets whether the Worker is allowed to be duplicated.

public bool AllowDuplicate { get; }

Property Value

bool

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 ISyncMember

The member to test.

Returns

bool

true if the member should be shown; otherwise, false.

Remarks

This uses the MemberFilter or just returns true otherwise.