Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

MonoBehaviour Component order, like menu "Move Up" and "Move Down" in script

$
0
0
I use a script to convert components to other components, when i click convert it: copies values, destroys old component, and adds new component with values

example:
converting x to y component
component x1, component x2, component x3
component x1, component x3, component y2

the new component is added to the end,

in this example, it means that the animator thinks component x3 is y2

is there a way to change the order of a component through script?

component x1, component x2, component x3...

MonoBehaviour Component order, like menu "Move Up" and "Move Down" in script

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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