• Home
  • Guides
  • API Documentation
WLT documentation has moved.

We are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the Core WLT section of the dot net API explorer and related pages. Existing content will remain here but will not be updated further.

  • API Documentation
  • Reference
  • Microsoft.MixedReality.WorldLocking.Examples
  • RayPins
Search Results for

    Show / Hide Table of Contents
    • Reference
      • Microsoft.MixedReality.WorldLocking.ASA
        • IBinder
        • IBindingOracle
        • ILocalPeg
        • IPublisher
        • LocalPegAndProperties
        • PublisherASA
        • PublisherReadiness
        • ReadinessStatus
        • SpacePinASA
        • SpacePinASA.KeyValPair
        • SpacePinBinder
        • SpacePinBinderFile
        • SpacePinCloudBinding
      • Microsoft.MixedReality.WorldLocking.ASA.Examples
        • ActionCube
        • ActionPublish
        • PlatformMenuSelector
        • ScreenSpacer
        • SpacePinASAManipulation
        • Startup
      • Microsoft.MixedReality.WorldLocking.Core
        • AdjustLocationDelegate
        • AdjustStateDelegate
        • AlignmentManager
        • AlignSubtree
        • AnchorManager
        • AnchorManager.SpongyAnchorWithId
        • AnchorManagerARCore
        • AnchorManagerNull
        • AnchorManagerWSA
        • AnchorSettings
        • AnchorSettings.AnchorSubsystem
        • AttachmentPoint
        • AttachmentPointStateType
        • Diagnostics
        • Diagnostics.Record
        • DiagnosticsSettings
        • Fragment
        • HeadPoseTrackerCamera
        • HeadPoseTrackerXR
        • IAlignmentManager
        • IAnchorManager
        • IAttachmentPoint
        • IAttachmentPointManager
        • IFragmentManager
        • IHeadPoseTracker
        • IOrientable
        • IOrienter
        • LinkageSettings
        • ManagerSettings
        • Orienter
        • Orienter.WeightedRotation
        • OrienterThreeBody
        • PoseExtensions
        • PostAlignmentLoadedDelegate
        • RefitNotificationDelegate
        • ResourceMirror
        • ResourceMirror.CompareToResource<ItemType, ResourceType>
        • ResourceMirror.CreateResource<ItemType, ResourceType>
        • ResourceMirror.DestroyResource<ResourceType>
        • ResourceMirror.UpdateResource<ItemType, ResourceType>
        • SharedDiagnosticsSettings
        • SharedManagerSettings
        • SpacePin
        • SpacePin.ModelPositionSourceEnum
        • SpacePinOrientable
        • SpongyAnchor
        • SpongyAnchorARCore
        • SpongyAnchorARF
        • SpongyAnchorNull
        • SpongyAnchorWSA
        • SpongyAnchorXR
        • TransformExtensions
        • WorldLockingContext
        • WorldLockingManager
      • Microsoft.MixedReality.WorldLocking.Core.ResourceMirrorHelper
        • IdPair<IdType, T>
      • Microsoft.MixedReality.WorldLocking.Core.Triangulator
        • Interpolant
        • ITriangulator
        • SimpleTriangulator
      • Microsoft.MixedReality.WorldLocking.Examples
        • AlignmentControl
        • CircleCam
        • DashboardCommand
        • DashboardUI
        • FallOut
        • ManipulationEndedDelegate
        • ManipulationStartedDelegate
        • PhysicsBeamSample
        • PinManipulator
        • RayPins
        • SpacePinManipulation
        • SpacePinOrientableManipulation
      • Microsoft.MixedReality.WorldLocking.Tools
        • AdjusterBase
        • AdjusterFixed
        • AdjusterMoving
        • AnchorGraphVisual
        • ConnectingLine
        • FrameVisual
        • FrozenAnchorVisual
        • FrozenSpatialMapping
        • FrozenSpatialMapping.QualityType
        • FrozenTapToAdd
        • SimpleConsole
        • SimpleSprite
        • SpacePinMeshVisualizer
        • SpacePinPercentageVisualizer
        • SpongyAnchorVisual
        • StatusToText
        • ToggleWorldAnchor
        • WorldAnchorAdapter
        • WorldLockingSetup

    Class RayPins

    Inheritance
    Object
    RayPins
    Implements
    IMixedRealityPointerHandler
    Namespace: Microsoft.MixedReality.WorldLocking.Examples
    Assembly: cs.temp.dll.dll
    Syntax
    public class RayPins : InputSystemGlobalHandlerListener

    Fields

    spacePinPoints

    Global position of each of the space pins points can be matched to a ray cast against the environment.

    Declaration
    public List<Transform> spacePinPoints
    Field Value
    Type Description
    List<Transform>

    Properties

    ActivePin

    Accessor for currently active pin.

    Declaration
    public int ActivePin { get; set; }
    Property Value
    Type Description
    Int32

    Methods

    ClearAll()

    Disable the effects of all pins, as if they had never been set.

    Declaration
    public void ClearAll()

    CreateSpacePins()

    Destroy any existing pins, and create new pins, one for each spacePinPoint.

    Declaration
    public bool CreateSpacePins()
    Returns
    Type Description
    Boolean

    True on success.

    Remarks

    If the spacePinPoint list is modified from script, CreateSpacePins should be called to resynchronize.

    OnPointerClicked(MixedRealityPointerEventData)

    Process pointer clicked event if ray cast has result.

    Declaration
    public void OnPointerClicked(MixedRealityPointerEventData eventData)
    Parameters
    Type Name Description
    MixedRealityPointerEventData eventData

    OnPointerDown(MixedRealityPointerEventData)

    No-op on pointer down.

    Declaration
    public void OnPointerDown(MixedRealityPointerEventData eventData)
    Parameters
    Type Name Description
    MixedRealityPointerEventData eventData

    OnPointerDragged(MixedRealityPointerEventData)

    No-op on pointer drag.

    Declaration
    public void OnPointerDragged(MixedRealityPointerEventData eventData)
    Parameters
    Type Name Description
    MixedRealityPointerEventData eventData

    OnPointerUp(MixedRealityPointerEventData)

    No-op on pointer up.

    Declaration
    public void OnPointerUp(MixedRealityPointerEventData eventData)
    Parameters
    Type Name Description
    MixedRealityPointerEventData eventData

    RegisterHandlers()

    Declaration
    protected override void RegisterHandlers()

    SetActivePin(Int32)

    Function for setting active pin from MRTK GUI callbacks.

    Declaration
    public void SetActivePin(int i)
    Parameters
    Type Name Description
    Int32 i

    The new current pin.

    Start()

    Create a shared orienter, and create space pins for any spacePinPoints set in the inspector.

    Declaration
    protected override void Start()

    UnregisterHandlers()

    Declaration
    protected override void UnregisterHandlers()

    Implements

    IMixedRealityPointerHandler
    In This Article
    • Fields
      • spacePinPoints
    • Properties
      • ActivePin
    • Methods
      • ClearAll()
      • CreateSpacePins()
      • OnPointerClicked(MixedRealityPointerEventData)
      • OnPointerDown(MixedRealityPointerEventData)
      • OnPointerDragged(MixedRealityPointerEventData)
      • OnPointerUp(MixedRealityPointerEventData)
      • RegisterHandlers()
      • SetActivePin(Int32)
      • Start()
      • UnregisterHandlers()
    • Implements
    Back to top Generated by DocFX