Quantcast
Viewing all articles
Browse latest Browse all 2891

CS0103 error when building scenes

Hi, I'm currently learning to program in Unity. I followed a tutorial and had the following script working in UNity 2018.2. I have an older project in UNity 2017.4 and now I'm getting these errors. PlayIntro.cs(19,9): error CS0103: The name `Handheld' does not exist in the current context Build completed with a result of 'Failed' UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0020e] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:181 at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00065] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:88 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) Here is the code: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class PlayIntro : MonoBehaviour { private string movie = "splash.mp4"; public string sceneToLoad; void Start () { StartCoroutine(streamVideo(movie)); } private IEnumerator streamVideo(string video) { Handheld.PlayFullScreenMovie(video, Color.black, FullScreenMovieControlMode.Hidden, FullScreenMovieScalingMode.Fill); yield return new WaitForSeconds (12); SceneManager.LoadScene (sceneToLoad); } } Have been unable to figure out what's wrong. Any help will be greatly appreciated. Thanks.

Viewing all articles
Browse latest Browse all 2891

Trending Articles