- Home /
 
Unity Abstract Parent Class not in Build, but in Editor
So, I have a script in unity that creates class SteamVR_BezierPointer inherits from another abstract class SteamVR_WorldPointer
And everything from these classes work totally fine in Unity Editor when running the game. However, when I do a build, I get a NullReferencePointer on the line base.Start();. My guess is that the script for SteamVR_WorldPointer didn't make it into the build since its an abstract class and it isn't attached to any GameObject. Is there a way to make sure the Build includes that C# Script?
The reason I think its that is because in the editor, it has no problem hitting the Debug.Log("1"); line, but it never makes it that far in the output_log of the build.
 public class SteamVR_BezierPointer : SteamVR_WorldPointer
 {
 //Defining Variables...
 // Use this for initialization
 protected override void Start()
 {
     Debug.Log("Starting Bezier");
     base.Start();
     Debug.Log("1");
 
               }
Your answer
 
             Follow this Question
Related Questions
Manipulating the location of the VR controllers (Vive/SteamVR) in script 0 Answers
How to setup the Hololens spectator project and How to record? 0 Answers
How can I let the player rotate with several speeds in VR, HTC Vive? 0 Answers
Gaze Pointer (Gvr reticle) seems double 2 Answers
How to access Raycast's gameObject from the Gear VR control? 0 Answers