Your Script Not Working

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
jambon
Posts: 6
Joined: Wed May 29, 2019 3:17 pm

Your Script Not Working

Post 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;
}
}
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Your Script Not Working

Post 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;
Post Reply