Reference script can't be found upon switching build platforms

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
mgregoirelds
Posts: 106
Joined: Wed Aug 23, 2017 4:10 pm
Location: Canada

Reference script can't be found upon switching build platforms

Post by mgregoirelds »

Hello Tony,

I'm experiencing problem with TextMeshPro and Dialogue System when switching platforms. Everytime that I switch platforms to build, I'm getting "The referenced script on this Behaviour (Game Object 'Subtitle Text') is missing" warnings. I'm also getting "The reference script (PixelCrushers.DialogueSystem.Wrappers.TextMeshProTypewriterEffect) on this Behaviour is missing!" warnings. Finally, I'm also getting "Dialogue System: No UI text element is assigned to Standard Dialogue UI's Alert UI Elements." Upon launching the game, none of my text is displaying properly in dialogues.

The problem is that before switching platforms, the selected platform (PC, Mac & Linux Standalone) is working perfectly. The repro steps I have for this is just switching from PC, Mac & Linux Standalone to either Xbox One or Nintendo Switch platform.

FYI, I am using TextMeshPro 1.2.4 from the Package Manager tool in Unity 2018.2.10.

Thanks,

Maxime
Unity 2022.3.17f1
Dialogue System 2.2.44.1
OpenAI Addon 1.0.12
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Reference script can't be found upon switching build platforms

Post by Tony Li »

Hi Maxime,

Each build platform has its own set of Scripting Define Symbols. Make sure the Scripting Define Symbols for your current platform includes "TMP_PRESENT". You may also need to right-click on the TextMeshProTypewriterEffect script(s) and select Reimport.
mgregoirelds
Posts: 106
Joined: Wed Aug 23, 2017 4:10 pm
Location: Canada

Re: Reference script can't be found upon switching build platforms

Post by mgregoirelds »

Hello Tony,

That fixed it (I completely forgot about that define)! Thank you!
Unity 2022.3.17f1
Dialogue System 2.2.44.1
OpenAI Addon 1.0.12
Post Reply