Answers for "how to set a transform equal to something unity"

C#
2

c# transform

using UnityEngine;public class Example : MonoBehaviour
{
    // Moves all transform children 10 units upwards!
    void Start()
    {
        foreach (Transform child in transform)
        {
            child.position += Vector3.up * 10.0f;
        }
    }
}
Posted by: Guest on November-07-2019
1

how to set a transform equal to something unity

public Transform tr; //make ref. in inspector window

tr.position = new Vector2(x, y);
Posted by: Guest on June-27-2020

Code answers related to "how to set a transform equal to something unity"

C# Answers by Framework

Browse Popular Code Answers by Language