Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

PPS V2 Color Override Issue (Bug?)

Discussion in 'Image Effects' started by Du-z, Jun 8, 2019.

  1. Du-z

    Du-z

    Joined:
    May 10, 2013
    Posts:
    19
    Hi Guys,

    I have been converting a script to make use of the V2 PP Stack, (Repo available HERE).

    I can't quite figure out what I am doing wrong, when I add an item to outline and use the color picker to override the color, every works as expected. However as soon as I use the following code to override it programatically the color visually looks like it is set to (255, 0, 0, 255).

    Code (CSharp):
    1.             var postProcessLayer = Camera.main.GetComponent<PostProcessLayer>();
    2.             var outlinePP = PostProcessManager.instance
    3.                 .GetHighestPriorityVolume(postProcessLayer)
    4.                 .profile.GetSetting<Outline>();
    5.  
    6.             outlinePP.OutlineColor.Override(new Color(0, 170, 0, 13));
    The color picker also stops working as expected:-



    When inspecting the code I see that the color variable is set as I would expect, but the color picker and the actual rendering is incorrect.



    Software details:-
    Unity 2019.1.5f1
    Post Processing 2.1.6

    Any guidance would be appreciated.
     

    Attached Files: