mchrbn / unity-traffic-simulation

A Unity asset that lets you easily simulate very simple traffic into your scene.
263 stars 57 forks source link

isdirty #12

Closed fmuqtadi closed 4 years ago

fmuqtadi commented 4 years ago

unity editor giving me these error , any idea? Assets\unitysimulation\Assets\TrafficSimulation\Scripts\Editor\TrafficEditor.cs(292,32): error CS0117: 'EditorUtility' does not contain a definition for 'IsDirty'

Failed to load 'C://testing/test/Assets/unitysimulation/Assets/TrafficSimulation/Examples/Scenes/Example_01/LightingData.asset' because it was serialized with a newer version of Unity. (Has a higher SerializedFile version) UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag(HierarchyProperty, Boolean) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

MSchmoecker commented 4 years ago

Hi, it seems as you using an older of Unity where the function EditorUtility.IsDirty() doesn't exists. Luckily this call isn't necessary at all, so it can be removed without breaking something