유니티

포스트: 59|조회수: 0|ARTIFACT
Items

Posts

59 posts

[경고&에러 대응] `UnityEditor.EditorApplication.currentScene' is obsolete

개발자 SPRING|2018년 8월 15일

mParam.Reference = mParam.Value.name + "(" + EditorApplication.currentScene+")"; -> using UnityEditor.SceneManagement; mParam.Reference = mParam.Value.name + "(" + EditorSceneManager.GetActiveScene ().name + ")";//EditorApplication.currentScene+")";

[경고&에러 대응] UnityEngine.ParticleSystem.enableEmission' is obsolete

개발자 SPRING|2018년 8월 14일

foreach (ParticleSystem em in pss)if (em != null) { em.enableEmission = false;} -> foreach (ParticleSystem em in pss)if (em != null) { var emission = em.emission; //added for unity2017 emission.enabled = false; //em.enableEmission = false; //modified for unity2017}

[경고&에러 대응] 'UnityEditor.EditorWindow.title' is obsolete.

개발자 SPRING|2018년 8월 13일

win.title = "PS Scaler"; win.minSize = new Vector2(300, 165); win.maxSize = new Vector2(300, 165); -> #if UNITY_4_3 || UNITY_4_5 || UNITY_4_6 || UNITY_5_0 win.title = "PS Scaler"; #else win.titleContent = new GUIContent("PS Scaler"); #endif win.minSize = new Vector2(300, 165); win.maxSize = new Vector2(300, 165);

[경고&에러 대응] 'UnityEditor.TextureImporterFormat.AutomaticTruecolor' is obsolete.

개발자 SPRING|2018년 8월 13일

1.Open up the ColorCorrectionLookupEditor.cs script from Assets/Editor/ImageEffects.On line line 54, replaceif (textureImporter.textureFormat != TextureImporterFormat.AutomaticTruecolor)withif (textureImporter.textureCompression != TextureImporterCompression.Uncompressed) 2.On line line 62, replacetextureImporter.textureFormat = TextureImporterFormat.AutomaticTruecolor;withtextureImporter.textureC