示例#1
0
        /// <summary>
        /// Sets the source of surface information.
        /// </summary>
        /// <param name="mappingSource">The source to switch to. Null means return to the live stream if possible.</param>
        public void SetSpatialMappingSource(SpatialMappingSource mappingSource)
        {
            UpdateRendering(false);

            if (mappingSource == null)
            {
                Source = surfaceObserver;
            }
            else
            {
                Source = mappingSource;
            }

            UpdateRendering(DrawVisualMeshes);
        }
示例#2
0
 // Called when the GameObject is first created.
 protected void Awake()
 {
     surfaceObserver = gameObject.GetComponent <SpatialMappingObserver>();
     Source          = surfaceObserver;
 }