The title bears the gist of it, using C# is it possible to reference the elements in a scene within a method?
Something loosely like:
void UpdateTextElement()
{
// Get text element with name ‘testtext’ in scene structure
// Set text element’s containing text to “Hello World”
}
I have tried looking around for information regarding this but haven’t been able to find anything. If I haven’t looked hard enough, please point me in the right direction.
You need to declare this parameter in the Intuiface Descriptor. This is actually a limitation of the “GenerateDescriptor” tool that doesn’t do this automatically, so you have to edit the ifd manually to add this property to your event.
I believe that I have implemented this correctly though I am not getting the right results. I have updated the code to:
// Get the amount of items in the list.
int amt = m_lstVideos.Count;
if (QueueUpdated != null)
{
// Fire the QueueUpdated event, passing the amt variable
// so that it can be evaluated in IntuiFace.
QueueUpdated(this, amt);
}
but when the trigger is fired (I have a visual representation that the trigger is indeed firing), it is supposed to set a text element to the amt variable that is passed through it. After editing the ifd file to include the amt as an integer parameter to the event and testing it in a handful of different ways I simply cant get the text element to update with the amt variable.
I have uploaded the IntuiFace experience and have shared it with xp-for-support@intuiface.com. The element in the red box should change every time every time either of the buttons are pressed, but they do not, and I am having a hard time tracking down the issue.
To make sure you get the best and fastest support, can you please contact our support team here and just copy your last messages in the request? That’ll be easier to make a proper follow-up and diagnostic via through our open community forum