File tree Expand file tree Collapse file tree 2 files changed +3
-17
lines changed
Assets/ScriptableRenderLoop Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -226,17 +226,9 @@ public TilePass.LightLoop tilePassLightLoop
226
226
TextureCache2D m_CookieTexArray ;
227
227
TextureCacheCubemap m_CubeCookieTexArray ;
228
228
229
- private void OnEnable ( )
229
+ private void OnValidate ( )
230
230
{
231
- // TODO: Design workaround for OnValidate being missing on ScriptableObject
232
231
m_Dirty = true ;
233
- Rebuild ( ) ;
234
- }
235
-
236
- private void OnDisable ( )
237
- {
238
- // TODO: Rework ScriptableRenderLoop Lifecycle
239
- //CleanUp();
240
232
}
241
233
242
234
public override void Rebuild ( )
Original file line number Diff line number Diff line change @@ -113,22 +113,16 @@ static void CreateRenderLoopFPTL()
113
113
private Texture2D m_LightAttentuationTexture ;
114
114
private int m_shadowBufferID ;
115
115
116
- public override void Initialize ( )
116
+ private void OnValidate ( )
117
117
{
118
118
Rebuild ( ) ;
119
119
}
120
120
121
- private void OnEnable ( )
121
+ public override void Initialize ( )
122
122
{
123
123
Rebuild ( ) ;
124
124
}
125
125
126
- private void OnDisable ( )
127
- {
128
- // TODO: Rework ScriptableRenderLoop Lifecycle
129
- //CleanUp();
130
- }
131
-
132
126
public override void Cleanup ( )
133
127
{
134
128
// RenderLoop.renderLoopDelegate -= ExecuteRenderLoop;
You can’t perform that action at this time.
0 commit comments