Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Singleton LineRendererCamera Not Initialised — Unity 2019.3 #4

Open
HulloImJay opened this issue Jun 19, 2020 · 2 comments
Open

Singleton LineRendererCamera Not Initialised — Unity 2019.3 #4

HulloImJay opened this issue Jun 19, 2020 · 2 comments

Comments

@HulloImJay
Copy link

Trying this library out as it looks very helpful! But I'm hitting an error when running all the example scenes.

NullReferenceException: Object reference not set to an instance of an object EPPZ.Lines.LineRendererCamera.AddDirectRenderer (EPPZ.Lines.DirectLineRenderer renderer) (at Assets/22. Assets — 3rd Party/Unity.Library.eppz/Unity.Library.eppz.Lines/LineRendererCamera.cs:51) EPPZ.Lines.DirectLineRenderer.Awake () (at Assets/22. Assets — 3rd Party/Unity.Library.eppz/Unity.Library.eppz.Lines/DirectLineRenderer.cs:32)

This seems to be some failure to initialise the singleton?

To get the library working I also added Unity.Library.eppz.Lines and the required define symbol. And I thought the singleton issue might be related to the missing execution order utility, so I also added Unity.Library.eppz.Utils, but this did not correct the above error.

Unity 2019.3.7f1
macOS 10.15.5

@HulloImJay
Copy link
Author

Also received warnings regarding the GUI Layer component being removed from the camera. I thought this was unrelated, and the missing component on the camera was only that issue. HOWEVER, it appears to actually be the required LineRendererCamera component!

Screen Shot 2020-06-19 at 17 10 19

Added a LineRendererCamera to the camera and assigned one of the materials (not sure which is correct) and the sample scenes run.

But why would that reference have become broken...? I cloned the repo directly from the terminal into a subfolder of my project and inited the submodules.

@Geri-Borbas
Copy link
Owner

Geri-Borbas commented Jun 19, 2020

Hi, at the moment I'm not supporting this repository. However, if I recall right, I accidentally hooked up some external dependency (probably line renderers) available only in Unity.Library.eppz.

I recommend to use that library as a starting point, and remove unnecessary stuff gradually. Hope that helps! 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants