I noticed when i parent my object, my child object scale changes to 0,0,0. How can i fix this?
using UnityEngine;
using System.Collections;
public class ParentScript : MonoBehaviour {
void Start () {
GameObject newParent = GameObject.FindGameObjectWithTag("LaserLocation");
this.transform.parent = newParent.transform;
}
}
↧