Question by
krullwarking · Feb 13, 2017 at 01:31 PM ·
functionmodelsshowinghiding
Function to hide all objects that are not either named "xxxx" or parented by "xxxx"?
I need to write a function that can take a name passed in and loop through a previously filled array, Parts = GetComponentsInChildren(typeof(Component)); and do a SetActive(false) on every other object in the model except the one named in the parameter and and of its subcomponents so that it is the only component showing when the script is complete.
Comment