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

Fix:Build error resolved. #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MuhammadFaizanKhan
Copy link

Purpose of this PR

When you make a build you get this error:

E:\Projects_GitHub\HLODSystem\com.unity.hlod\Runtime\HLODManager.cs(83,24): error CS0120: An object reference is required for the non-static field, method, or property 'HLODCameraRecognizer.RecognizedCamera'.

For the solution in HLODManager.cs script on line83 I have replaced:

if (cam != HLODCameraRecognizer.HLODCameraRecognizer)
    return;

with this

if (cam != HLODCameraRecognizerManager.ActiveCamera)
    return;

HLODCameraRecognizer in HLODCameraRecognizer script is not static, and the code were trying to access it with class name.

Release Notes

If you find better way to do this job. Please do this and discard this PR.


Testing status

TBD


Overall Product Risks

Technical Risk: None
Halo Effect: None


Comments to reviewers

Notes for the reviewers you have assigned.

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.

1 participant