How to Parse actions

I need to ActionManager.Parse actions. What I tried to find the correct json:

- create a box with a SwitchBooleanAction action
- serealize the scene and find the json actions of the box 
- unregisterAction the SwitchBooleanAction of the box
- recreate the action by calling BABYLON.ActionManager.Parse( json, box, scene )

Calling:

BABYLON.ActionManager.Parse( json, box, scene )

fails.

Any idea how to fix this?

The action manager did not support serialization / parsing of actions targeting a material. This PR will add that support:

2 Likes

ok, that solves it. thx