0
的小孩游戏对象
是否可以将父GameObject放入UnityEditor并从代码中看到小孩的gameObjects?我试图创建具有必要结构的自定义类,坚果统一不理解它。查看代码
public Path Path1;
public Path Path2;
public Path Path3;
public Path Path4;
[Serializable]
public class Path : MonoBehaviour
{
public List<Way> Ways;
public Path()
{
}
}
路类
[Serializable]
public class Way : MonoBehaviour
{
public Transform StartPoint { get; set;}
public Transform[] EndPoints { get; set;}
public Transform[] AngleWaypoints { get; set;}
public Way()
{
}
public Way (Transform startPoint, Transform[] endPoints, Transform[] angleWaypoints)
{
this.StartPoint = startPoint;
this.EndPoints = endPoints;
this.AngleWaypoints = angleWaypoints;
}
}
无影响。我试图把GameObject放在Path类上 –
你可以添加你的代码或UnityEditor的截图来帮助澄清这个问题吗? – asantacreu
我已编辑我的答案@ЧечилКрым – asantacreu