Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Curvy Splines Built In Editor Undo causes issues.
#1
I believe I stated this issue before but ill state it again in case it hasn't been addressed.

I have an undo system built into my game (using ctrl+z, and ctrl+shift+z for redo). The problem I'm running into is how CurvySplines editor seems to work. It appears to register an undoable action when making connections (and possibly elsewhere). The problem is if I accidentally leave keyboard inputs enabled when in play mode, the system will undo things causing strange, unexpected errors within curvy.

It makes sense that ctrl+z would undo an editor action in playmode if I still have the keyboard enabled, but for it to undo a runtime action is very odd to me.

Is it possible to add a check for if its in playmode and just not record undoable inputs if so?

I noticed you have an #if UNITY_EDITOR check, however I believe this only runs when actually compiling the game. I still believe you need to add a Application.IsRunning or something similar.
Reply


Messages In This Thread
Curvy Splines Built In Editor Undo causes issues. - by Lupos - 09-30-2023, 06:24 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Twisting Splines ZiggZagg 0 1 7 hours ago
Last Post: ZiggZagg
  Help with procedural roads and splines ramiroflores 1 4 05-07-2024, 08:57 AM
Last Post: _Aka_
Information New free asset: Converter For Unity Splines _Aka_ 5 19 04-25-2024, 11:11 AM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_

Forum Jump: