Author Topic: UnityEditor.PlayerSettings does not contain a definition for targetGlesGraphics  (Read 7331 times)

nzen

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 30
    • View Profile
I switched my project from Standalone to Android and now I get this error:

Assets/NGUI/Scripts/Editor/UIAtlasMaker.cs(120,36): error CS0117: `UnityEditor.PlayerSettings' does not contain a definition for `targetGlesGraphics'

  1. #if UNITY_ANDROID || UNITY_IPHONE
  2.                 if (PlayerSettings.targetGlesGraphics == TargetGlesGraphics.OpenGLES_1_x)
  3.                 {
  4.                         maxSize = Mathf.Min(maxSize, 1024);
  5.                 }
  6.                 else
  7.                 {
  8.                         maxSize = Mathf.Min(maxSize, NGUISettings.allow4096 ? 4096 : 2048);
  9.                 }
  10. #endif

It's also in UIPanelInspector line 185.

Commenting them out allows for export...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Duplicate post.