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

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