Пример #1
0
 private void InitGizmo()
 {
     this.bgr                  = BoneGizmoRenderer.AddGizmo(base.transform, "CommonLamia");
     this.bgr.Visible          = false;
     this.bgr.offsetScale      = 0.5f;
     this.bgr.eDragUndo        = true;
     this.bgr.dragEndDelegate += this.GizmoDragEnd;
 }
Пример #2
0
        public new static BoneGizmoRenderer AddGizmo(Transform parent_tr, string gizmo_name)
        {
            GameObject gameObject = new GameObject();

            ExGizmoRenderer._gameObjects_.Add(gameObject);
            gameObject.transform.SetParent(parent_tr, false);
            gameObject.name = gizmo_name;
            BoneGizmoRenderer boneGizmoRenderer = gameObject.AddComponent <BoneGizmoRenderer>();

            boneGizmoRenderer.name = gizmo_name + "_GR";
            return(boneGizmoRenderer);
        }