internal void DevicesGUI(BuildTargetGroup targetGroup)
 {
     if (this.TargetGroupSupportsVirtualReality(targetGroup))
     {
         bool flag = VREditor.GetVREnabledOnTargetGroup(targetGroup);
         EditorGUI.BeginChangeCheck();
         flag = EditorGUILayout.Toggle(EditorGUIUtility.TextContent("Virtual Reality Supported"), flag, new GUILayoutOption[0]);
         if (EditorGUI.EndChangeCheck())
         {
             VREditor.SetVREnabledOnTargetGroup(targetGroup, flag);
         }
         if (flag)
         {
             this.VRDevicesGUIOneBuildTarget(targetGroup);
         }
     }
 }
 private void DevicesGUI(BuildTargetGroup targetGroup)
 {
     if (this.TargetGroupSupportsVirtualReality(targetGroup))
     {
         bool flag = VREditor.GetVREnabledOnTargetGroup(targetGroup);
         EditorGUI.BeginChangeCheck();
         flag = EditorGUILayout.Toggle(PlayerSettingsEditorVR.Styles.supportedCheckbox, flag, new GUILayoutOption[0]);
         if (EditorGUI.EndChangeCheck())
         {
             VREditor.SetVREnabledOnTargetGroup(targetGroup, flag);
         }
         if (flag)
         {
             this.VRDevicesGUIOneBuildTarget(targetGroup);
         }
     }
 }
        private void DevicesGUI(BuildTargetGroup targetGroup)
        {
            if (!TargetGroupSupportsVirtualReality(targetGroup))
                return;

            bool vrSupported = VREditor.GetVREnabledOnTargetGroup(targetGroup);

            EditorGUI.BeginChangeCheck();
            vrSupported = EditorGUILayout.Toggle(Styles.supportedCheckbox, vrSupported);
            if (EditorGUI.EndChangeCheck())
            {
                VREditor.SetVREnabledOnTargetGroup(targetGroup, vrSupported);
            }

            if (vrSupported)
            {
                VRDevicesGUIOneBuildTarget(targetGroup);
            }
        }
Пример #4
0
 public static void SetVREnabled(BuildTargetGroup targetGroup, bool value)
 {
     VREditor.SetVREnabledOnTargetGroup(targetGroup, value);
 }