Sign in to follow this  
inxs

GUI - Cannot Link control

Recommended Posts

Hi all,

I was trying to link my textblock to a mesh but I get the message:

"Cannot link a control to a mesh if the control is not at root level"

Docu says:

"Please note that controls that want to track position of a mesh must be at root level (at AdvancedDynamicTexture level)."

 

But I don't know what that means and how I can fix it.

 

Thank you

Jonny

Share this post


Link to post
Share on other sites

Hi guys,

thanks for your answer!

Indeed the order was wrong. I had to add the control first in order to link it. Before I had it the other way around.

this.guiOverlay.addControl(textBlock);
textBlock.linkWithMesh(cylX);
 
edit: Another Question:
Is it also possible to link the control to a point instead of a Mesh? This way you always have to create a dummy Mesh.
 
edit2: Unfortunatly the PG in the docu seem not to be working :(
 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.