Code: Select all
protected virtual void OnEnable()
{
if (string.IsNullOrEmpty(actor)) return;
CharacterInfo.RegisterActorTransform(actor, transform); // this is where the error occurs (line 155-ish)
}
For some reason the "Dialogue Database" field of the Dialogue Actor component keeps getting reset to null for some reason. Even if I have it set to the one that I want, when I press play, it resets to "none," and stays like that even after going back into edit mode. It's also worth noting that the object with the component is a prefab (which has the component) and it is also inside of another component which exists in the scene. I have made sure that there are no overrides that make it null. Another thing that's weird is that whenever I click on one of the prefabs - which has the Dialogue Database field properly created - it fixes the instance... at least until I enter play mode, which is when it is set back to "none" again.
No idea if the Dialogue Database field is even relevant to the issue, probably best to mention though.
Thanks!
