- Home /
 
               Question by 
               TommiH · Feb 03, 2019 at 07:45 PM · 
                instantiateprefabexecuteineditmodedirty  
              
 
              Changes via script in prefab mode not applied to instances
I'm trying to create a baking system for my prefabs, which includes running some code and setting some public variables. This code runs on the Editor Update step (using ExecuteInEditMode and the Update function), meaning it'll run after I make a change. The baked data seems to get saved properly in the prefab file, since it's still there when I come back. However, for some reason this isn't applied to instances of that prefab in scenes, nor to any instances I create at runtime.
I've tried to call SetDirty at the end of the function, but it's not having any effect.
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                