Page 1 of 1

Your Script Not Working

Posted: Wed May 29, 2019 3:22 pm
by jambon
Hello form this topic: viewtopic.php?t=232

I have tried your code but Visual Studio gives error for: DialogueManager.displaySettings = newDisplaySettings;

using UnityEngine;
using PixelCrushers.DialogueSystem;

public class NewDisplaySettings : MonoBehaviour {

public DisplaySettings newDisplaySettings;

public void Start() {
DialogueManager.displaySettings = newDisplaySettings;
}
}

Re: Your Script Not Working

Posted: Wed May 29, 2019 3:47 pm
by Tony Li
Things changed a little since version 1.x back in 2015. Instead of this:

Code: Select all

DialogueManager.displaySettings = newDisplaySettings;
Please use this:

Code: Select all

DialogueManager.instance.displaySettings = newDisplaySettings;