playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker News
»
General Discussion
»
GUI Panels?[SOLVED]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: GUI Panels?[SOLVED] (Read 2791 times)
PolyMad
Hero Member
Posts: 545
GUI Panels?[SOLVED]
«
on:
February 22, 2019, 01:01:24 PM »
Is there a particular reason why there are no actions to treat the Unity GUI Panel elements?
«
Last Edit: February 28, 2019, 01:51:33 AM by jeanfabre
»
Logged
djaydino
Administrator
Hero Member
Posts: 7616
Re: GUI Panels?
«
Reply #1 on:
February 22, 2019, 11:41:43 PM »
Hi.
Not sure what you mean?
The ui panel contains a rect trasform and an image which both have actions.
Only the Canvas Renderer does not have an action for it.
If you need this i can make it for you.
Logged
Join the PlayMaker Discord Channel!
PolyMad
Hero Member
Posts: 545
Re: GUI Panels?
«
Reply #2 on:
February 23, 2019, 06:25:42 AM »
I mean, I see many actions for the GUI, but none of those is about the GUI PANELS.
How do you manage the different GUI screens, like in example a screen for SETTINGS, another for choosing maps, etc., without using Panels?
Logged
djaydino
Administrator
Hero Member
Posts: 7616
Re: GUI Panels?
«
Reply #3 on:
February 23, 2019, 06:45:43 AM »
Hi.
The Panels work kind of like an empty parent, except it has rect transform, a Ui image and a Canvas Renderer included.
So the Panel does not have its own class, that's why there are no actions for Panel
Logged
Join the PlayMaker Discord Channel!
PolyMad
Hero Member
Posts: 545
Re: GUI Panels?
«
Reply #4 on:
February 23, 2019, 06:05:59 PM »
Sorry but I don't understand.
Aren't panels supposed to be something like different screens that you can turn on and off inside a Canvas?
I thought this was their task.
If this is not their task, what are they for?
And how do you deal with more screens? You make many Canvas???
Logged
djaydino
Administrator
Hero Member
Posts: 7616
Re: GUI Panels?
«
Reply #5 on:
February 23, 2019, 10:30:00 PM »
Hi.
in the "Panel" you can group buttons etc for a "screen"
Then you can just disable/enable them like standard gameobjects,
animate/slide them off screen or Enable/Disable Raycast Target, which would block raycasting stuff behind the panel.
Logged
Join the PlayMaker Discord Channel!
PolyMad
Hero Member
Posts: 545
Re: GUI Panels?
«
Reply #6 on:
February 24, 2019, 05:46:07 AM »
So Panels are not considered in Playmaker actions because they would block the raycasts?
I still can't understand how do you replace them, after you write that, like I supposed, they can be considered "screens"...
Logged
djaydino
Administrator
Hero Member
Posts: 7616
Re: GUI Panels?
«
Reply #7 on:
February 25, 2019, 11:43:47 AM »
Hi.
No, There is no Class for a 'Panel' see this post on unity :
https://answers.unity.com/questions/800208/what-class-is-a-panel.html
as there is no class we can't really make actions for it
A panel is the same , as you would create an empty game object and add the 3 components i mentioned.
Logged
Join the PlayMaker Discord Channel!
PolyMad
Hero Member
Posts: 545
Re: GUI Panels?
«
Reply #8 on:
February 25, 2019, 02:21:39 PM »
Duh!
What the hell? So why did they put that item in Unity GUI? I can't understand this!
Could you please tell me which is the right workflow to add "screens" to a canvas then? Thank you
«
Last Edit: February 25, 2019, 02:24:56 PM by megmaltese
»
Logged
djaydino
Administrator
Hero Member
Posts: 7616
Re: GUI Panels?
«
Reply #9 on:
February 25, 2019, 10:36:34 PM »
Hi.
Well, a empty game object has a Transform component and in canvas you need to use a rect transform.
That's the main reason i guess.
To make a menu screen, you can use the panel as a parent and inside it place you buttons etc.
Then you can animate the panel to move in/out the screen, or enable disable the panel (or enable/disable the raycast target on the image from the panel)
Here is a tutorial which you could have a look at (its not playmaker, but i think most you can understand)
//www.youtube.com/watch?v=QxRAIjXdfFU
Logged
Join the PlayMaker Discord Channel!
PolyMad
Hero Member
Posts: 545
Re: GUI Panels?
«
Reply #10 on:
February 26, 2019, 09:16:03 AM »
So, in other words, a panel is simply an object to which some classes are appended, right?
And from Playmaker I will animate the object itself (turn on/off) like any other.
Logged
djaydino
Administrator
Hero Member
Posts: 7616
Re: GUI Panels?
«
Reply #11 on:
February 26, 2019, 10:37:33 AM »
Hi.
Yes.
you can use the rect transform for movement with rect actions or animation/animator.
you can enable/disable the raycast in the panel so that things behind can't be pressed/triggered.
rest is same as on other objects.
Logged
Join the PlayMaker Discord Channel!
PolyMad
Hero Member
Posts: 545
Re: GUI Panels?
«
Reply #12 on:
February 27, 2019, 06:43:54 PM »
Thank you very much, Dino!
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker News
»
General Discussion
»
GUI Panels?[SOLVED]