- Home /
Windows store build keeps generating "The referenced script on this Behaviour is missing!" errors
I'm just starting to try Windows Store apps, so if it's some obvious thing that I missed, forgive me. But, whenever I make a Windows Store build, I get a number of "The referenced script on this Behaviour is missing!" lines in the Visual Studio output window and nothing happens.
In my test project, I have just one scene with just one script which has just one line of code which disables the renderer for the GameObject it's currently on, like this:
using UnityEngine;
using System.Collections;
public class HideCube : MonoBehaviour
{
void Start()
{
GetComponent<Renderer>().enabled = false;
}
}
The script is attached to the only renderer in the scene (a cube) and it obviously works in the editor. However, when I build for Windows Store, I just get a number of "The referenced script on this Behaviour is missing!" errors and nothing happens at all. I also tested with both a Windows phone and my own Windows 10 laptop, both are exactly the same.
I should probably mention that, Windows Store aside, I've been using Unity for quite some time now, and I've never seen anything like this. I'd greatly appreciate any hints as to what may be the problem.
Edit: Here is the complete log from Visual Studio's output window.
Edit 2: I just discovered that if I switch the SDK from "Universal 8.1" to just "8.1" or "Phone 8.1" it works.
Your answer
Follow this Question
Related Questions
UWP 8.1 minimum resolution 0 Answers
Fullscreen button at standalone window 0 Answers
IAP fails on Windows Store 0 Answers
fluid vertex animation shader not working with Universal Windows Platform 0 Answers