Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Warnings
#1
Hi!
When compiling the code in the console I get 20 warnings. All warnings are of type CS0618. Here is an example of one of them:



Code:
Assets/Curvy/Editor/CurvySplineSegmentInspector.cs(488,14): warning CS0618: `UnityEditor.Undo.RegisterSceneUndo(string)' is obsolete: `Use DestroyObjectImmediate, RegisterCreatedObjectUndo or RegisterUndo instead.'

I use:
Unity 4.3.1f1
Curvi 1.51.0

What is the reason? How can I resolve it?
Thank you for your attention.

 

 
Reply
#2
Hi,

the reason is that Unity 4.3 changed the way Undo works and the method we currently use isn't supported anymore. We will address this with the next update, but you can ignore those warnings for now.
Reply
#3
(12-11-2013, 08:01 AM)'Jake' Wrote: Hi,

the reason is that Unity 4.3 changed the way Undo works and the method we currently use isn't supported anymore. We will address this with the next update, but you can ignore those warnings for now.


 

Thanks for the fast reply! I'll wait for updates.
 

 
Reply
#4
(12-11-2013, 08:07 AM)'xcube' Wrote: Thanks for the fast reply! I'll wait for updates.
  

Me, too [img]images/smilies/biggrin.gif[/img] (just kidding, I'm working on it...)



 
Reply
#5
I also work, but am waiting for the update because these warnings still get in the way.
Reply
#6
But they're completely harmless. Perhaps you might want to click on them and comment the code lines causing them. Though this will remove Undo functionality...
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Obsolete warnings Woondal 1 2,171 10-31-2017, 04:20 PM
Last Post: Jake
  Obsolete warnings on Unity 2017.1.0b3 Woondal 1 3,322 06-07-2017, 07:02 PM
Last Post: Jake

Forum Jump: