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.

Comments (32)

  1. beriberis

    May 21, 2020 18:26

    It proved to be Very helpful to me and I am sure to all the commentators here!
    send sms cyprus https://www.steilesms.com/en/

  2. johndd110

    Apr 20, 2020 11:25

    Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!
    visit here http://sanskritijewelsbygeetika.com/

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.