private static void MenuClicked() { var parentTrans = new GameObject("ParentTransform").transform; var childTrans = new GameObject("ChildTransform").transform; TransformSimplify.AddChild(parentTrans, childTrans); GameObjectSimplify.Hide(parentTrans); }
private static void MenuClicked1() { Transform transform1 = new GameObject("transform1").transform; Transform parent = new GameObject("parent").transform; TransformSimplify.SetLocalPosX(transform1, 10); TransformSimplify.SetLocalPosY(transform1, 20); TransformSimplify.SetLocalPosZ(transform1, 10); TransformSimplify.Identify(transform1); TransformSimplify.AddChild(parent, transform1); }
private static void MenuClicked1() { var transform = new GameObject("transform").transform; TransformSimplify.SetLocalPosX(transform, 5.0f); TransformSimplify.SetLocalPosY(transform, 5.0f); TransformSimplify.SetLocalPosZ(transform, 5.0f); TransformSimplify.Identity(transform); var childTrans = new GameObject("Child").transform; TransformSimplify.AddChild(transform, childTrans); }
public void Identity() { TransformSimplify.Identity(transform); }