keijiro / PostProcessingUtilities

Utility scripts for the post processing stack
261 stars 23 forks source link

Not working on Unity 2018 #2

Open LetrixZ opened 6 years ago

LetrixZ commented 6 years ago

I have added to main camera but when I toggle any control enabler, does nothing. Changing animation values also does nothing. unity

roguecode commented 6 years ago

Same with 2017.2.1.

dskill commented 6 years ago

Just ran into this as well - any suggestions for a temporary workaround?

mgincsrl commented 6 years ago

Me too... I was in hurry and I exposed through a script all the DOF elements of post processing profile in a script, then I created two inspectors, one locked to the PostProcessing Profile referenced, one on the dof update script, then I setup the Profile DOF and in the Timeline I updated the script with the corresponding values... It's a real pain, but I'm in hurry and I need to go for it!

dndn1011 commented 6 years ago

I had the same problem, it turned out to be execution order. Make sure the PostProcessingController script is executed first in the script execution order settings.

After this you will find that the settings do not update in edit mode. Modify the PostProcessingController script as follows:

`#if UNITY_EDITOR using UnityEditor;

endif

namespace UnityEngine.PostProcessing.Utilities {

if UNITY_EDITOR

[ExecuteInEditMode]

endif

[RequireComponent(typeof(PostProcessingBehaviour))]
public class PostProcessingController : MonoBehaviour
{

`

mercior commented 6 years ago

I note that PostProcessingControllerEditor.cs contains many lines like this:

if (isPlaying && _controlScreenSpaceReflection.boolValue)

if you strip the isPlaying part then it works in the editor.. not sure why the isPlaying check was put here?