Hello,
I'd like for the script below to change playmaker fsm values during edit mode. I'm using odin inspector for the inspector button, and I know that part works because the values do change to false in playmode, but they do not change while in edit mode. What do I need to do?
-----------------------------------
using System.Collections.Generic;
using UnityEngine;
using Sirenix.OdinInspector;
[ExecuteInEditMode]
public class ResetDefaults : MonoBehaviour
{
public PlayMakerFSM sceneFSM;
[Button(ButtonSizes.Large), GUIColor(0, 1, 0)]
private void ResetDefaults()
{
sceneFSM.FsmVariables.GetFsmBool("No Previous Scene").Value = false;
sceneFSM.FsmVariables.GetFsmBool("Skip Intro On Start").Value = false;
}
}