Class BaseBoundarySystem
Inheritance
BaseBoundarySystem
Implements
IDisposable
IEqualityComparer
Assembly: cs.temp.dll.dll
public abstract class BaseBoundarySystem : BaseCoreSystem, IMixedRealityBoundarySystem, IMixedRealityEventSystem, IMixedRealityService, IDisposable, IMixedRealityEventSource, IEqualityComparer
Constructors
Declaration
protected BaseBoundarySystem(MixedRealityBoundaryVisualizationProfile profile, ExperienceScale scale)
Parameters
Fields
The largest rectangle that is contained withing the play space geometry.
Declaration
protected InscribedRectangle RectangularBounds
Field Value
Properties
Declaration
public float BoundaryHeight { get; set; }
Property Value
Declaration
public MixedRealityBoundaryVisualizationProfile BoundaryVisualizationProfile { get; }
Property Value
Declaration
public int BoundaryWallsPhysicsLayer { get; set; }
Property Value
Declaration
public Edge[] Bounds { get; protected set; }
Property Value
Declaration
public int CeilingPhysicsLayer { get; set; }
Property Value
Declaration
public float? FloorHeight { get; protected set; }
Property Value
Declaration
public int FloorPhysicsLayer { get; set; }
Property Value
Declaration
public override string Name { get; protected set; }
Property Value
Overrides
Declaration
public int PlayAreaPhysicsLayer { get; set; }
Property Value
Declaration
public ExperienceScale Scale { get; set; }
Property Value
Type |
Description |
ExperienceScale |
|
Declaration
public bool ShowBoundaryCeiling { get; set; }
Property Value
Declaration
public bool ShowBoundaryWalls { get; set; }
Property Value
Declaration
public bool ShowFloor { get; set; }
Property Value
Declaration
public bool ShowPlayArea { get; set; }
Property Value
Declaration
public bool ShowTrackedArea { get; set; }
Property Value
Declaration
public uint SourceId { get; }
Property Value
Declaration
public string SourceName { get; }
Property Value
Declaration
public int TrackedAreaPhysicsLayer { get; set; }
Property Value
Methods
Declaration
public bool Contains(Vector3 location, BoundaryType boundaryType = null)
Parameters
Type |
Name |
Description |
Vector3 |
location |
|
BoundaryType |
boundaryType |
|
Returns
Declaration
public override void Destroy()
Overrides
Declaration
public GameObject GetBoundaryCeilingVisualization()
Returns
Type |
Description |
GameObject |
|
Retrieves the boundary geometry.
Declaration
protected abstract List<Vector3> GetBoundaryGeometry()
Returns
Type |
Description |
List<Vector3> |
A list of geometry points, or null if geometry was unavailable.
|
Declaration
public GameObject GetBoundaryWallVisualization()
Returns
Type |
Description |
GameObject |
|
Declaration
public GameObject GetFloorVisualization()
Returns
Type |
Description |
GameObject |
|
Declaration
public int GetHashCode(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Declaration
public GameObject GetPlayAreaVisualization()
Returns
Type |
Description |
GameObject |
|
Declaration
public GameObject GetTrackedAreaVisualization()
Returns
Type |
Description |
GameObject |
|
Declaration
public override void HandleEvent<T>(BaseEventData eventData, ExecuteEvents.EventFunction<T> eventHandler)
where T : IEventSystemHandler
Parameters
Type |
Name |
Description |
BaseEventData |
eventData |
|
ExecuteEvents.EventFunction<T> |
eventHandler |
|
Type Parameters
Overrides
Microsoft.MixedReality.Toolkit.BaseEventSystem.HandleEvent<T>(BaseEventData, ExecuteEvents.EventFunction<T>)
Declaration
public override void Initialize()
Overrides
Registers the GameObject to listen for boundary events.
Declaration
public override void Register(GameObject listener)
Parameters
Type |
Name |
Description |
GameObject |
listener |
|
Overrides
Updates the tracking space on the XR device.
Declaration
protected abstract void SetTrackingSpace()
Declaration
public bool TryGetRectangularBoundsParams(out Vector2 center, out float angle, out float width, out float height)
Parameters
Returns
UnRegisters the GameObject to listen for boundary events.
///
Declaration
public override void Unregister(GameObject listener)
Parameters
Type |
Name |
Description |
GameObject |
listener |
|
Overrides
Implements
IDisposable
IEqualityComparer