equivalent to Button Show IF? #117
Unanswered
laurentopia
asked this question in
Q&A
Replies: 3 comments
-
Hi, use public GameObject prefab;
[PlayaHideIf(nameof(prefab))]
[Button]
public void CreateSo(){} Unity_XAKm7H1DRd.mp4 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Great, thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is not supported, and has no similar alternative either. You need a helper function: [PlayaHideIf(yourConditions..., "$" + nameof(HelperFunc))]
[Button]
public void MyFunc() {}
HelperFunc() => prefab.prefab != null; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like this button to hide away when prefab is filled up. What's the proper syntax?
Beta Was this translation helpful? Give feedback.
All reactions