@@ -20,6 +20,8 @@ internal sealed class AdvertisementComponentInspector : ComponentTypeComponentIn
2020 private SerializedProperty m_adUnitIdWebGL = null ;
2121 private SerializedProperty m_adUnitIdWebGLWeChat = null ;
2222 private SerializedProperty m_adUnitIdWebGLDouYin = null ;
23+ private SerializedProperty m_debug = null ;
24+ private GUIContent m_debugGUIContent = new GUIContent ( "是否是测试模式" ) ;
2325 private GUIContent m_adUnitIdAndroidGUIContent = new GUIContent ( "Android 广告位ID" ) ;
2426 private GUIContent m_adUnitIdiOSGUIContent = new GUIContent ( "IOS 广告位ID" ) ;
2527 private GUIContent m_adUnitIdWebGLGUIContent = new GUIContent ( "WebGL 广告位ID" ) ;
@@ -34,6 +36,7 @@ public override void OnInspectorGUI()
3436
3537 EditorGUI . BeginDisabledGroup ( EditorApplication . isPlayingOrWillChangePlaymode & Application . isPlaying ) ;
3638 {
39+ EditorGUILayout . PropertyField ( m_debug , m_debugGUIContent ) ;
3740 EditorGUILayout . PropertyField ( m_adUnitIdAndroid , m_adUnitIdAndroidGUIContent ) ;
3841 EditorGUILayout . PropertyField ( m_adUnitIdiOS , m_adUnitIdiOSGUIContent ) ;
3942 EditorGUILayout . PropertyField ( m_adUnitIdWebGL , m_adUnitIdWebGLGUIContent ) ;
@@ -59,6 +62,7 @@ protected override void Enable()
5962 m_adUnitIdWebGL = serializedObject . FindProperty ( "m_adUnitIdWebGL" ) ;
6063 m_adUnitIdWebGLWeChat = serializedObject . FindProperty ( "m_adUnitIdWebGLWeChat" ) ;
6164 m_adUnitIdWebGLDouYin = serializedObject . FindProperty ( "m_adUnitIdWebGLDouYin" ) ;
65+ m_debug = serializedObject . FindProperty ( "m_debug" ) ;
6266 }
6367 }
6468}
0 commit comments