Unity-Technologies / HLODSystem

873 stars 142 forks source link

Support multiple CameraRecognizer #117

Closed JangkyuSeo closed 1 year ago

JangkyuSeo commented 1 year ago

Purpose of this PR

HLODSystem can have only one activate camera. If you want to use multi camera like cutscene, HLOD shows depending on the main camera. So we need a way to control change camera recognizing at runtime.

image

image

Added ID and Priority in the HLODCameraRecognizer. You can control recognizer through these values.

Also, added manager calss, HLODCameraRecognizerManager. You can select the CameraRecognizer to be activated through the following method.

public void Active(HLODCameraRecognizer recognizer) public void Active(int id) public void ActiveHighestPriority() public void EnableAutoHighestPrioritySetting(bool enable)

The legacy code works the same as before without any edit.


Release Notes

Support multiple CameraRecognizer


Testing status

Manual


Overall Product Risks

Technical Risk: Medium

Halo Effect: Medium


Comments to reviewers

Notes for the reviewers you have assigned.