Announcements
The Scaleform forum is now read-only. Please head to the Gamedev site for product support.
Scaleform Forum (Read Only)
Scaleform enables developers to leverage the power of the Adobe® Flash® tool set to create powerful user interface environments for video games.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GetVariable "root" returns null

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
404 Views, 0 Replies

GetVariable "root" returns null

Anonymous
Not applicable

Hi,

 

i recently started evaluation of the Scaleform Unity Integration and i basically understand how the main_level demo in the eval kit works.

 

I'm now stuck on the level where i created myself an swf file and loaded it via CreateSwf. Up to this point everything works (no crash or error and the returned instance is not null). After instantiating the movie i want to get a handle to the "_root" element via movie.GetVariable(out root, "_root"). I also tried "root" but everytime the function returns false and root is null.

 

What could i've possibly done wrong?

 

Another question: when the above is working i want to connect a function handler thats inside my swf to a c# function - how can this be done with the unity integration? it's perfectly clear to me how it works in the c++ version but the unity function call CreateFunction wants the following parameters: Valu value, string funcName, IntPtr fptr, IntPtr pQueueHandle. i could locate a similar queue handle ptr in the SFManager but it's private. How is this supposed to work?

Reply
Reply
0 Likes

GetVariable "root" returns null

Hi,

 

i recently started evaluation of the Scaleform Unity Integration and i basically understand how the main_level demo in the eval kit works.

 

I'm now stuck on the level where i created myself an swf file and loaded it via CreateSwf. Up to this point everything works (no crash or error and the returned instance is not null). After instantiating the movie i want to get a handle to the "_root" element via movie.GetVariable(out root, "_root"). I also tried "root" but everytime the function returns false and root is null.

 

What could i've possibly done wrong?

 

Another question: when the above is working i want to connect a function handler thats inside my swf to a c# function - how can this be done with the unity integration? it's perfectly clear to me how it works in the c++ version but the unity function call CreateFunction wants the following parameters: Valu value, string funcName, IntPtr fptr, IntPtr pQueueHandle. i could locate a similar queue handle ptr in the SFManager but it's private. How is this supposed to work?

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report