However, I'm getting very sporadic behavior as to the HUD being updated. The scene change playmaker event that triggers a node change updates the HUD as expected, but none of the subsequent ones do. I tried writing a mini refresh PM action and adding it after my node updates but that doesn't seem to help.
Any ideas on areas to investigate? I'm happy to provide additional diagnostic information if needed. I've included a copy of my Refresh code in case that's a potential issue.
(Addendum: I should have also noted that subsequent tests to use the QM messaging system for things like Trigger with Quest Control also change the quest node state without changing the HUD status. May not have much to do with PM integration specifically.)
Code: Select all
using UnityEngine;
using HutongGames.PlayMaker;
using PixelCrushers.QuestMachine;
namespace PixelCrushers.QuestMachine.PlayMakerSupport
{
[ActionCategory("Quest Machine")]
[HutongGames.PlayMaker.Tooltip("Sends a 'Refresh UIs' message to all Quest Machine UI components, forcing them to update.")]
public class RefreshQuestHUD : FsmStateAction
{
public override void OnEnter()
{
QuestMachineMessages.RefreshUIs(this);
Finish();
}
}
}