Quantcast
Viewing all articles
Browse latest Browse all 103

prefab: can you exclude a variable from beign tracked?

**Can I exclude the scale of a prefab instance from being tracked?** Unity already allows prefab instances to have independent rotation and position, can I exclude the scale likewise? **An example:** *Imagine I have a prefab of a tree that has built in functionality for my character to interact with. My scene takes place in a forest, so there are lots of trees... each tree is an instance of a prefab, and for design reasons, each has a different scale (carefully placed). Imagine I decide to improve my tree prefab. Thing is I'd have to write some code to reset every prefab of every scene, and I have to make some script to store a scale, and call it whenever the prefab is updated. Both of this I can do with the PrefabUtility, I'm just wondering if there's a better way, and I can just exclude the scale or other variables*

Viewing all articles
Browse latest Browse all 103

Trending Articles



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