You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting exposed parameter of gameobject type from code using exposedParameters[0].serializedValue.value , there is no data in exposedParameters[0].serializedValue.serializedValue which causes this error:
System.NullReferenceException
at (wrapper managed-to-native) UnityEngine.GameObject.get_transform(UnityEngine.GameObject)
at GetPositionNode.Process () [0x00001] in F:\Projects\FatalSet\Assets\_FS\Script\NodeSystem\Nodes\GameObjectNodes.cs:30
at GraphProcessor.BaseNode.<OnProcess>b__49_0 () [0x00000] in F:\Projects\FatalSet\Library\PackageCache\com.alelievr.node-graph-processor@92ac41e0ce\Runtime\Elements\BaseNode.cs:351
at GraphProcessor.ExceptionToLog.Call (System.Action a) [0x00002] in F:\Projects\FatalSet\Library\PackageCache\com.alelievr.node-graph-processor@92ac41e0ce\Runtime\Utils\ExceptionToLog.cs:14
UnityEngine.Debug:LogError(Object)
GraphProcessor.ExceptionToLog:Call(Action) (at Library/PackageCache/com.alelievr.node-graph-processor@92ac41e0ce/Runtime/Utils/ExceptionToLog.cs:19)
GraphProcessor.BaseNode:OnProcess() (at Library/PackageCache/com.alelievr.node-graph-processor@92ac41e0ce/Runtime/Elements/BaseNode.cs:351)
NodeGraphProcessor.Assets.Examples.ConditionalGraph.<RunConditionalGraph>d__13:MoveNext() (at Assets/Samples/Node Graph Processor/0.6.0/Examples/ConditionalGraph/ConditionalProcessor.cs:154)
NodeGraphProcessor.Assets.Examples.ConditionalGraph.ConditionalProcessor:Run() (at Assets/Samples/Node Graph Processor/0.6.0/Examples/ConditionalGraph/ConditionalProcessor.cs:51)
AIController:Update() (at Assets/_FS/Script/AIController.cs:149)
I think ConditionalProcessor needs to use serializedValue.value when serializedValue.serializedValue returns empty string or use only serializedValue.value during runtime execution.
The text was updated successfully, but these errors were encountered:
RedTheKitsune
changed the title
2 frame gameobject serialization delay causes nullref exception during runtime graph execution.
Exposed parameters of gameobject type is not serialized causing nullref exception during runtime.
May 18, 2020
When setting exposed parameter of gameobject type from code using
exposedParameters[0].serializedValue.value
, there is no data inexposedParameters[0].serializedValue.serializedValue
which causes this error:I think ConditionalProcessor needs to use
serializedValue.value
whenserializedValue.serializedValue
returns empty string or use onlyserializedValue.value
during runtime execution.The text was updated successfully, but these errors were encountered: