99place
0 votes Vote

Changing a graph in Whittaker at runtime get_unscaledTime error

UnityException: get_unscaledTime is not allowed to be called during serialization, call it from OnEnable instead. Called from ScriptableObject 'Graph'.
See "Script Serialization" page in the Unity Manual for further details.
ConsoleUtility.Console.Log (System.String Command, System.String Message, UnityEngine.LogType type, System.Boolean logToPeek) (at Library/PackageCache/net.peeweek.console@1.5.2/Console/Script/Console.cs:410)
ConsoleUtility.Console.HandleUnityLog (System.String logString, System.String stackTrace, UnityEngine.LogType type) (at Library/PackageCache/net.peeweek.console@1.5.2/Console/Script/Console.cs:422)
UnityEngine.Application.CallLogCallback (System.String logString, System.String stackTrace, UnityEngine.LogType type, System.Boolean invokedOnMainThread) (at :0)
UnityEngine.Debug:Log(Object)
MapMagic.Nodes.GraphSerializer200Beta:CheckInletsGensAssigned(Graph) (at Assets/MapMagic/Nodes/GraphSerializer.cs:95)
MapMagic.Nodes.GraphSerializer200Beta:Deserialize(Graph) (at Assets/MapMagic/Nodes/GraphSerializer.cs:82)
MapMagic.Nodes.Graph:OnAfterDeserialize() (at Assets/MapMagic/Nodes/Graph.cs:1150)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

This is a dumb thing for me to do I guess but when we testing dropping in new graphs seems like a thing that IS going to happen.

Can we just cheat? and grab that value earlier and fudge it or fake it? Thanks :)

twobob , 02.07.2021, 13:55
Idea status: under consideration

Comments

Wraith, 04.07.2021, 10:49
Does this happen in Whittaker tutorial or in some custom scene? If in Whittaker tutorial - what value exactly are you changing?

And can't wrap my head why there is a serialization error. Are you loading a scene with a script?
twobob, 04.07.2021, 20:15
I am dropping a graph at runtime in over the Whittaker FOREST slot (for example) where some another forest graph is already sitting, with a different graph for Forest.

To "change" the graph and test another in it's place.
Wraith, 07.07.2021, 00:42
Just to clarify: you are assigning a sub-graph in playmode?
Texture overlays (http://mm2.idea.informer.com/proj/?ia=136752) seem to be related with playmode as well

Leave a comment