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

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