Ejemplo n.º 1
0
 internal void DevicesGUI(BuildTargetGroup targetGroup)
 {
     if (this.TargetGroupSupportsVirtualReality(targetGroup))
     {
         bool flag = VREditor.GetVREnabled(targetGroup);
         EditorGUI.BeginChangeCheck();
         flag = EditorGUILayout.Toggle(EditorGUIUtility.TextContent("Virtual Reality Supported"), flag, new GUILayoutOption[0]);
         if (EditorGUI.EndChangeCheck())
         {
             VREditor.SetVREnabled(targetGroup, flag);
         }
         if (flag)
         {
             this.VRDevicesGUIOneBuildTarget(targetGroup);
         }
     }
 }