Пример #1
0
        private static async Task <GameObject> AddChildEntryView(
            ListFieldView self, JsonSchemaToView viewGenerator, string fieldName, JsonSchema entryVm)
        {
            var parentView = self.mainLink.gameObject;

            if (CanBeShownInListViewEntry(entryVm.GetJTokenType()))
            {
                GameObject childGo = await viewGenerator.AddChild(parentView, await viewGenerator.NewListViewEntry());

                await viewGenerator.InitChild(childGo, fieldName, entryVm);

                return(childGo);
            }
            else
            {
                return(await viewGenerator.AddViewForJsonSchemaField(parentView, entryVm, fieldName));
            }
        }