Search Issue Tracker

Fixed in 5.0.X

Votes

0

Found in

4.5.1f3

Issue ID

573567

Regression

No

Cannot add default Flare Layer component to a Camera from code

Camera

-

To reproduce:
1. Generate code that creates a camera; i.e. Camera someCam;
2. Generate code to add a flare layer component; i.e. someCam.gameObject.AddComponent<FlareLayer>();

Expected result:
Ability to add all default camera components via code.

Actual result:
You cannot. Flare Layer does not exist as a class / type.

Side problem:
As there isn't a C# version of FlareLayer class that the Camera depends on, this will get stripped from iOS builds if not used in a scene and crash on Light::RemoveFromManager.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.