Wut?@DreTaX Recently received all the components from the box - is it possible to get the whole field and output the values without any search?
I want to get the value of each component on the object - is it possible?Wut?
public static ArrayList GetComponentsOfType<T>(GameObject o) where T : class {
Component[] objs = o.GetComponents();
ArrayList goodObjs = new ArrayList();
T com;
for (int i = 0; i < objs.Length; ++i) {
com = objs[i] as T;
if (com != null) {
goodObjs.Add(com);
}
}
return goodObjs;
}
Components from a box?I want to get the value of each component on the object - is it possible?
GetComponent
C#:public static ArrayList GetComponentsOfType<T>(GameObject o) where T : class { Component[] objs = o.GetComponents(); ArrayList goodObjs = new ArrayList(); T com; for (int i = 0; i < objs.Length; ++i) { com = objs[i] as T; if (com != null) { goodObjs.Add(com); } } return goodObjs; }
Yes. I want to find the number 28 from Large Wood Storage. This is the display distanceComponents from a box?
Uhh, I’m not quite getting what you mean.Yes. I want to find the number 28 from Large Wood Storage. This is the display distance
distance render boxUhh, I’m not quite getting what you mean.
28 slots of the box?
You mean you want to edit the distance from which you can still see the LWSB? If I'm not mistaken.distance render box![]()