Beispiel #1
0
        void AddCompsition()
        {
            // rootVisualElement.Query<Button>("AddBtn").
            ADV_DramaCompsition compsition = new ADV_DramaCompsition();

            compsition.characterName = "";
            compsition.content       = "";
            rootVisualElement.Q <ScrollView>("TextScrollArea").Add(compsition);
        }
            public override void Init(VisualElement ve, IUxmlAttributes bag, CreationContext cc)
            {
                base.Init(ve, bag, cc);
                ADV_DramaCompsition ate = ve as ADV_DramaCompsition;

                ate.Clear();
                ate.AddTemplet();

                ate.characterName = m_CharacterName.GetValueFromBag(bag, cc);
                ate.content       = m_Content.GetValueFromBag(bag, cc);
            }