Overriding QuestAction.GetEditorName not working
Posted: Fri Apr 30, 2021 9:39 pm
I've got a custom quest action that looks like this:
However, when I go to add an action to quest node state, the name appears as "Add Available Host Action" instead of "Hello". Am I doing it wrong?
Code: Select all
using Hosts;
using PixelCrushers.QuestMachine;
using UnityEngine;
using UnityEngine.AddressableAssets;
namespace Quests.QuestActions {
public class AddAvailableHostAction : QuestAction {
[SerializeField]
private AssetReference host;
public override void Execute() {
base.Execute();
HostManager.Instance.AddAvailableHost(host);
}
public override string GetEditorName() {
return "Hello";
}
}
}