public static void RoundLocal() { GameObject go = Selection.activeGameObject; Transform[] gos = go.GetComponentsInChildren <Transform>(); //Debug.Log(gos.Length); for (int i = 0; i < gos.Length; i++) { KMTools.RoundToDecByObj(gos[i].gameObject); } }
public static void RoundPosAndRot() { GameObject go = Selection.activeGameObject; if (go != null) { KMTools.RoundToDecByObj(go); } else { Debug.Log("you need select one object"); } }