Space Ad Mobile
9.5.1
Space Ad Mobile makes ads easy to add into your mobile game: one unified workflow for LevelPlay, AdMob, Yandex.Ads across banners, interstitials and rewarded.
Loading...
Searching...
No Matches
ShowIfAttribute.cs
1
#if UNITY_EDITOR
2
using
System;
3
using
UnityEngine;
4
5
#pragma warning disable IDE0130
6
namespace
SCG.Editor
7
#pragma warning restore IDE0130
8
{
14
[AttributeUsage(AttributeTargets.Field)]
15
internal
sealed
class
ShowIfAttribute : PropertyAttribute
16
{
18
public
string
MemberName {
get
; }
19
21
public
bool
Invert {
get
; }
22
30
public
ShowIfAttribute(
string
memberName,
bool
invert =
false
)
31
{
32
MemberName = memberName;
33
Invert = invert;
34
}
35
}
36
}
37
#endif