This repository was archived by the owner on Nov 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change
1
+ using System . Collections . Generic ;
2
+
1
3
namespace UnityEngine . Rendering . PostProcessing
2
4
{
3
5
#if UNITY_2017_2_OR_NEWER
@@ -75,10 +77,9 @@ public Camera camera
75
77
// Property sheet factory handled by the currently active PostProcessLayer
76
78
public PropertySheetFactory propertySheets { get ; internal set ; }
77
79
78
- // Custom user data object (unused by builtin effects, feel free to store whatever you want
79
- // in this object)
80
- // TODO: Make this more useful
81
- public object userData { get ; set ; }
80
+ // Custom user data objects (unused by builtin effects, feel free to store whatever you want
81
+ // in this dictionary)
82
+ public Dictionary < string , object > userData { get ; private set ; }
82
83
83
84
// Reference to the internal debug layer
84
85
public PostProcessDebugLayer debugLayer { get ; internal set ; }
@@ -136,6 +137,11 @@ public void Reset()
136
137
autoExposureTexture = null ;
137
138
logLut = null ;
138
139
autoExposure = null ;
140
+
141
+ if ( userData == null )
142
+ userData = new Dictionary < string , object > ( ) ;
143
+
144
+ userData . Clear ( ) ;
139
145
}
140
146
141
147
// Checks if TAA is enabled & supported
You can’t perform that action at this time.
0 commit comments