개발자 SPRING

Sources

Posts

83 posts

[경고&에러 대응] 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

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

개발자 SPRING|2018년 8월 13일

particle.startSize *= myMultiplier->particle.main.startSizeMultiplier = myMultiplier

[경고&에러 대응] OnLevelWasLoaded is deprecated

개발자 SPRING|2018년 8월 1일

The new way: using UnityEngine.SceneManagement; void OnEnable() { //Tell our 'OnLevelFinishedLoading' function to start listening for a scene change as soon as this script is enabled. SceneManager.sceneLoaded += OnLevelFinishedLoading; } void OnDisable() { //Tell our 'OnLevelFinishedLo