Page 1 of 1

Visibility in UI Elements as Dynamic Texture (Cryengine 5.5.2)

Posted: Tue Dec 11, 2018 2:06 pm
by bowlmaster
As a dynamic texture i use a swf File with a simple Rect in it.
In Flash I converted the Rect to a Movie and give a Name.
Now i want to make the rect invisible but Nothing on dynamic Texture happens.

In Flash i use Myrect._visible = false;

Changing the Color of this Rect is no Problem.
Also I can change the _alpha , but not " _alpha = 0" !!!

Any ideas or is this not possible or a Bug?

Re: Visibility in UI Elements as Dynamic Texture

Posted: Tue Dec 11, 2018 3:19 pm
by lavizh
using 2d map texture type? you need to use the flashInvoke node to activate this with 5.5, just query search for FlashInvoke in Flowgraph.

Re: Visibility in UI Elements as Dynamic Texture

Posted: Tue Dec 11, 2018 8:03 pm
by bowlmaster
using 2d map texture type? you need to use the flashInvoke node to activate this with 5.5, just query search for FlashInvoke in Flowgraph.
To show the Flash File on a plane i use flash invoke. I have posted a File here in forum to show how to do this!
Works great!

My functions in the Flash file i access with c# via
Common.IUIElement.CallFunction This also works perfectly!
I can change colors and text and all other stuff on this dynamic 2D texture!

But i can not make objects or Movies invisible in my Flash File .

Do i have to use FlashInvoke to make things visible or not?
I can try this. Is there a way to do this from c# without reading the Flash Invoke function in c++?


Edit: I have tryed FlashInvoke in Flowgraph to hide Objects in Flash Movie on a 2d map texture type and also nothing happens!
If i test my Flash Movie without cryengine Objects are visible or invisible by hitting the function !

I will make and upload a little Project to show this problem...

flash_error.png
flash_error.png (936.66 KiB) Viewed 922 times

Re: Visibility in UI Elements as Dynamic Texture

Posted: Tue Dec 11, 2018 10:58 pm
by bowlmaster
Here is a little project you can test this problem.
Open Project in sandbox and open example.level and Play

Hit "x" to see an updateable Text in the Flash Movie
Hit "y" and nothing happens on _visibility

https://www.sendspace.com/file/pzp3wg


PLEASE HELP!!!