Interactions from Studio not firing
Hey again! I am pretty close i think to having this fully working in my engine. I have all the graphics, all the interactions, and in c++ I can grab a stroyboard and Begin() it, but I cannot Begin() it from any interaction events from studio.
For instance I have a simple button and when mouse over it starts a infinite loop storyboard. This works perfectly in studio.
In my engine even tho the button visually changes its hover state, click state, the storyboard will not play. I tried changing the button content to different text on button mouse over in Intereaction tab. In studio it works great. In engine, nothing. I didnt try to change the text from c++ but im sure it would
I did try hooking up to button events in c++ and the mouse enter, click, etc work fine there too.
So my conclusion is that interactions ( "Interactivity" in studio tab) dont seem to work at all in my implementation. I have been over the source examples over and over and theres nothing specific that needs to be done to start interaction as far as i can tell. Again I cannot dig into this because i do not have source so I could really use a kick in the right direction.
Thank you!
For instance I have a simple button and when mouse over it starts a infinite loop storyboard. This works perfectly in studio.
In my engine even tho the button visually changes its hover state, click state, the storyboard will not play. I tried changing the button content to different text on button mouse over in Intereaction tab. In studio it works great. In engine, nothing. I didnt try to change the text from c++ but im sure it would
I did try hooking up to button events in c++ and the mouse enter, click, etc work fine there too.
So my conclusion is that interactions ( "Interactivity" in studio tab) dont seem to work at all in my implementation. I have been over the source examples over and over and theres nothing specific that needs to be done to start interaction as far as i can tell. Again I cannot dig into this because i do not have source so I could really use a kick in the right direction.
Thank you!
-
-
sfernandez
Site Admin
- Posts: 3363
- Joined:
Re: Interactions from Studio not firing
Hi,
Did you get any errors about unknown types? You can add a log handler before initializing Noesis:
Is it possible that you didn't include the App/Interactivity package when building your application. You can find all the source code for that package in the Native SDK inside Src/Packages/App/Interactivity folder.
Did you get any errors about unknown types? You can add a log handler before initializing Noesis:
Code: Select all
#include <NsGui/IntegrationAPI.h>
...
Noesis::GUI::SetLogHandler([](const char*, uint32_t, uint32_t level, const char*, const char* msg)
{
const char* prefixes[] = { "T", "D", "I", "W", "E" };
printf("[NOESIS/%s] %s\n", prefixes[level], msg);
});Re: Interactions from Studio not firing
My log handler is set up and does not report anything. I will see if there is a way this module could be missing during my compile but as i understand it should be part of NoesisApp.dll which I built from the sdks build/ win x86 64 solution. I don't have Interactivity in my projects target_include_directories as i am not including any of the interactivity headers. I will investigate.
Thank you for the reply!
Thank you for the reply!
Re: Interactions from Studio not firing
okay turns out my log handler was actually disabled woops.
[NOESIS/E] MainPage.xaml(80,7): Unknown property type 'b:Interaction' (NoesisApp.Interaction)
think i found the reason here: viewtopic.php?p=18937&hilit=Unknown+pro ... %27#p18937
Edit: Fixed my project thanks to the link above.
Thank you for the quick support on helping me realise the issue sfernandez!
[NOESIS/E] MainPage.xaml(80,7): Unknown property type 'b:Interaction' (NoesisApp.Interaction)
think i found the reason here: viewtopic.php?p=18937&hilit=Unknown+pro ... %27#p18937
Edit: Fixed my project thanks to the link above.
Thank you for the quick support on helping me realise the issue sfernandez!
-
-
sfernandez
Site Admin
- Posts: 3363
- Joined:
Re: Interactions from Studio not firing
Great to hear you solved it!
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 5 guests