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

Handled canvas/camera NRE #1049

Merged
merged 1 commit into from
Apr 23, 2020

Conversation

Measurity
Copy link
Collaborator

No description provided.

@@ -76,7 +76,11 @@ public void LateUpdate()
waterBar?.UpdateVisual();

// Make canvas face camera.
canvas.transform.forward = Camera.main.transform.forward;
Camera camera = Camera.main;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe move this outside the loop? Camera.main is a little resource heavy as far as I know...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, but the camera changes so can't really do this effectively. Already tried to do this.

@Sunrunner37 Sunrunner37 merged commit d573efc into SubnauticaNitrox:master Apr 23, 2020
@Measurity Measurity deleted the fix-vitals-nre branch May 14, 2020 01:05
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

Successfully merging this pull request may close these issues.

None yet

3 participants