- Home /
Question by
piecewise13 · Jun 28, 2017 at 11:14 PM ·
c#unity 5image effects
Controlling image effects through c# in 5.6
I want to know how to control image effects in 5.6 through code because they changed the system completely. How would i go about doing this?
Comment
Using the post processing namespace
using UnityEngine.PostProcessing;
Then get the profile
private PostProcessingProfile postProfile;
void GetProfile(){
postProfile = cameraWithPostProcessing.GetComponent<PostProcessingBehaviour>().profile;
}
Example you want to turn anti aliasing off
postProfile.antialiasing.enabled = false;
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
EventTrigger PointerEnter 1 Answer
Why this c# program can not to auto die player 1 Answer
Unity5 filled my SSD? 0 Answers