public async UniTask Test() {
var template = await Addressables.LoadAssetAsync<Fsm>("test.asset");
var fsm = gameObject.AddComponent<PlayMakerFSM>(); // <-- crash
fsm.SetFsmTemplate(template);
}
This will crash after adding the component, but I can't access the PlayMaker source code. How can I open the source code?
The workaround is to make a prefab with the FSM and template already installed, and then load that prefab... But it seems odd that PlayMaker crashes with something this simple.
Unity 2022.3.1f1. Latest PlayMaker version.
NullReferenceException: Object reference not set to an instance of an object
PlayMakerFSM.Awake () (at C:/Projects/Playmaker_1.9.1/Projects/Playmaker.source.unity/Assets/PlayMaker/PlayMakerFSM.cs:231)
(I don't have anything in that path)
I am less interested in this crash and more interested in being able to open the source code.