Exemple #1
0
    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);
        }
    }
Exemple #2
0
    public static void RoundPosAndRot()
    {
        GameObject go = Selection.activeGameObject;

        if (go != null)
        {
            KMTools.RoundToDecByObj(go);
        }
        else
        {
            Debug.Log("you need select one object");
        }
    }