Esempio n. 1
0
 private static void SetDefaultValue(QImage component)
 {
     if (component == null)
     {
         return;
     }
     component.raycastTarget = false;
 }
Esempio n. 2
0
        public static QImage AddComponent()
        {
            QImage component = UtilityEditor.ExtensionComponentWhenCreate <QImage>(typeof(QImage).Name.ToString());

            //设置默认值
            SetDefaultValue(component);
            return(component);
        }
Esempio n. 3
0
 protected override void OnEnable()
 {
     base.OnEnable();
     ImageComponent = (QImage)target;
     key            = serializedObject.FindProperty("key");
 }