Пример #1
0
        protected void AddSetting(VFXSettingController setting)
        {
            var rm = PropertyRM.Create(setting, DefaultLabelWidth);

            if (rm != null)
            {
                m_Settings.Add(rm);
            }
            else
            {
                Debug.LogErrorFormat("Cannot create controller for {0}", setting.name);
            }
        }
Пример #2
0
        public VFXNodeController(VFXModel model, VFXViewController viewController) : base(viewController, model)
        {
            var settings = model.GetSettings(true);

            m_Settings = new VFXSettingController[settings.Count()];
            int cpt = 0;

            foreach (var setting in settings)
            {
                var settingController = new VFXSettingController();
                settingController.Init(this.slotContainer, setting.Name, setting.FieldType);
                m_Settings[cpt++] = settingController;
            }
        }