Quantcast
Channel: Questions in topic: "prefab connection"
Viewing all articles
Browse latest Browse all 103

How to programmatically break prefab instance upon pressing Play

$
0
0
Is there a way to break a prefab connection in script when I hit the Play button (or when the game starts)? I'm using an asset from the asset store that does not work in play mode unless the connection on it is broken. I know of PrefabUtility.DisconnectPrefabInstance, but it appears like it can only be executed in Edit mode? Is this true? Thanks!

Viewing all articles
Browse latest Browse all 103

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>