コード例 #1
0
    void Start()
    {
        var profileNames = FoveManager.ListProfiles().value;

        foreach (var profile in profileNames)
        {
            var item = GameObject.Instantiate(profileItemPrefab);
            item.transform.SetParent(layout.transform, false);

            var controller = item.GetComponent <ProfileItemController>();
            controller.ProfileName = profile;
            controllers.Add(controller);
        }
    }