private static void SetDefaultValue(QRawImage component) { if (component == null) { return; } component.raycastTarget = false; }
public static QRawImage AddComponent() { QRawImage component = UtilityEditor.ExtensionComponentWhenCreate <QRawImage>(typeof(QRawImage).Name.ToString()); //设置默认值 SetDefaultValue(component); return(component); }
protected override void OnEnable() { base.OnEnable(); RawImageComponent = (QRawImage)target; key = serializedObject.FindProperty("key"); }