예제 #1
0
        private void RunFocusHandlers(Entity entity, Cursor cursor, Action <IMixedRealityFocusHandler, MixedRealityFocusEventData> action)
        {
            var eventArgs = new MixedRealityFocusEventData()
            {
                Cursor        = cursor,
                CurrentTarget = entity,
            };

            entity.RunOnComponents <IMixedRealityFocusHandler>((x) => action(x, eventArgs));
        }
예제 #2
0
 /// <inheritdoc/>
 public void OnFocusExit(MixedRealityFocusEventData eventData)
 {
     this.hasFocus = false;
     this.InternalOnFocusLeave();
 }
예제 #3
0
 /// <inheritdoc/>
 public void OnFocusEnter(MixedRealityFocusEventData eventData)
 {
     this.hasFocus = true;
     this.InternalOnFocusEnter();
 }
예제 #4
0
 /// <inheritdoc/>
 public void OnFocusExit(MixedRealityFocusEventData eventData)
 {
     this.RefreshFocusedState(false);
 }
예제 #5
0
 /// <inheritdoc/>
 public void OnFocusEnter(MixedRealityFocusEventData eventData)
 {
     this.RefreshFocusedState(true);
 }