/// <summary>
 /// For internal use. Allows a reference point provider to register for the TryAttachReferencePoint extension
 /// </summary>
 /// <param name="subsystemId">The string name associated with the reference point provider to extend.</param>
 /// <param name="handler">A method that returns true if permission is granted.</param>
 public static void RegisterAttachReferencePointHandler(string subsystemId, AttachReferencePointDelegate handler)
 {
     s_AttachReferencePointDelegates[subsystemId] = handler;
 }
示例#2
0
 /// <summary>
 /// For internal use. Allows a reference point provider to register for the TryAttachReferencePoint extension
 /// </summary>
 /// <param name="subsystemId">The string name associated with the camera provider to extend.</param>
 /// <param name="handler">A method that returns true if permission is granted.</param>
 public static void RegisterAttachReferencePointHandler(string subsystemId, AttachReferencePointDelegate handler)
 {
     s_AttachReferencePointHandlers[subsystemId] = handler;
     UpdateCurrentHandler(subsystemId, s_AttachReferencePointHandlers, ref s_CurrentAttachDelegate);
 }