Share via


Plugin Class

Definition

Encapsulate FrozenWorldPlugin.dll with a Unity-friendly interface

This class contains no significant logic, only translation between the low-level C-style interface of the library and corresponding high-level C#/Unity data structures and calling paradigms

Though the library itself is implemented as singleton, this class implements constructor and Dispose function, handling the initialize/destroy functions of the engine, allowing stable loading/unloading cycles of the FrozenWorld component within the UnityEditor as they happen during typical application development.

Though this class has no significant internal state and most methods could technically be declared static, they are intentionally implemented as regular methods to ensure that the constructor has been called before any other interaction with the library.

public class Plugin : IDisposable, Microsoft.MixedReality.WorldLocking.Core.IPlugin
type Plugin = class
    interface IPlugin
    interface IDisposable
Public Class Plugin
Implements IDisposable, IPlugin
Inheritance
Plugin
Implements

Constructors

Plugin()

Properties

Metrics
VersionCompact
VersionDetailed

Methods

AddFrozenAnchor(AnchorId, Pose)
AddSpongyAnchors(List<AnchorPose>)
AddSpongyEdges(ICollection<AnchorEdge>)
ClearFrozenAnchors()
ClearFrozenEdges()
ClearSpongyAnchors()
ClearSpongyEdges()
ComputeAttachmentPointAdjustment(AnchorId, Vector3, AnchorId, Vector3, Pose)
CreateAttachmentPointFromHead(Vector3, AnchorId, Vector3)
CreateAttachmentPointFromSpawner(AnchorId, Vector3, Vector3, AnchorId, Vector3)
CreateDeserializer()

Create a frozen world state deserializer.

CreateSerializer(Single)

Create a serializer of frozen world state

Dispose()
Finalize()
GetAlignment()
GetFrozenAnchorIds()
GetFrozenAnchors()
GetFrozenEdges()
GetMostSignificantFragmentId()
GetMostSignificantFrozenAnchorId()
GetNumFrozenEdges()
GetSpongyHead()
GetSupportRelevances()
HasEngine()
Merge(FragmentId, FragmentPose[])
MoveAttachmentPoint(Vector3, AnchorId, Vector3)
MoveFrozenAnchor(AnchorId, Pose)
Refreeze(FragmentId, FragmentId[])
RefreezeFinish()
RemoveFrozenAnchor(AnchorId)
RemoveFrozenEdge(AnchorId, AnchorId)
ResetAlignment(Pose)
SetFrozenAnchorTransform(AnchorId, Pose)
SetMostSignificantSpongyAnchorId(AnchorId)
Step_Finish()
Step_Init(Pose)

Applies to