Playmaker Forum
PlayMaker News => General Discussion => Topic started by: Pawel on December 26, 2014, 06:05:35 PM
-
I downloaded the uGui actions and samples, I watched the video from Wiki. The simplest task seems impossible to do now...
I see that all other GUI elements working fine -- Sliders, Buttons, Scrollbars, ect ...but how do I change a simple text now with this new scheme? The text element shows an error once I attach the PlayMakerUGuiComponentProxy script (it warns that it is " not a valid UIcomponent")
How do I make a simple text a "Valid UI component", so I can make this text as dynamic as it is shown in the sample? (Where the text below the slider shows the result of changing values).
I don't want any buttons or any other "GUI elements" just the text...
-
Hi,
What version of Unity are you using? This set only supports the official 4.6 release, Unity 5 is still under beta and unsettled ( likely comply with Unity 4.6 UI in the end hopefully).
I'll be looking at supporting the Unit 5 beta early january, but it could break with every new beta release unfortunatly.
Bye,
Jean
-
It is the 4.6.1f1.
I found a workaround, since I can't figure it out. I attach my text element to one of the "Valid" UI components -- just disable them from doing anything other than being a parent... Hardly an ideal solution, but it works...
-
I think the main issue is that the UI Text objects that are added by Unity are seen as ordinary game objects. They are not recognized as UI Text by Playmaker.
Or am I missing something?
-
Target the Text component, not the GameObject.
-
Lane,
I can only set property to objects, not their components...
The object I create using "GameObject->UI->Text" have their Object Type set as "UnityEngine.GameObject" not as "UnityEngine.UI.Text"
I think this may be a bug... Is it? Or am I missing something...
-
You can use Set Property to target the Text component directly and change any of its public variables... rather than dragging the GameObject itself, drag the Component.
-
Thanks Lane. I will investigate this method.
Happy and prosperous New Year!
-
It works great. It does not have the same simplicity as previous text setup, but it is more powerful. For anyone who is struggling with this here is a quick visual how to control text via variable. (The FSM is attached to a text game object created using menu Game Object > UI > text)