-
- gjacob-RCG
- Posts: 8
- Joined:
Binding Noesis Duration in storyboard c++
Hi,
For my Unreal project, I need to bind a duration in a storyboard.
I created a variable in c++ in file.h :
But I have an error :
This is my first project in C++ and I don't understand why I'm getting this error.
Can you help me fix this error and get my binding for XAML?
For my Unreal project, I need to bind a duration in a storyboard.
Code: Select all
<Storyboard x:Key="Animation">
<DoubleAnimation Storyboard.TargetName="test" Storyboard.TargetProperty="Opacity"
From="0" To="1" Duration="{Binding Duration}"/>
</Storyboard>Code: Select all
UPROPERTY()
Noesis::Duration Duration;.error : Unable to find 'class', 'delegate', 'enum', or 'struct' with name 'Noesis::Duration'
This is my first project in C++ and I don't understand why I'm getting this error.
Can you help me fix this error and get my binding for XAML?
-
-
sfernandez
Site Admin
- Posts: 3363
- Joined:
Re: Binding Noesis Duration in storyboard c++
Hello,
As indicated in the Unreal tutorial, the Noesis::Duration type is mapped in Unreal to the FNoesisDuration type. You should be able to use that one in your view model:
Have you tried that?
As indicated in the Unreal tutorial, the Noesis::Duration type is mapped in Unreal to the FNoesisDuration type. You should be able to use that one in your view model:
Code: Select all
UPROPERTY()
FNoesisDuration Duration;-
- gjacob-RCG
- Posts: 8
- Joined:
Re: Binding Noesis Duration in storyboard c++
Hi,
No, I haven't tried that, and I think it's the right solution, but I'm not sure how to implement it.
Do you have an example in C++ to help me?
Edit: Thank you, I fixed my problem.
No, I haven't tried that, and I think it's the right solution, but I'm not sure how to implement it.
Do you have an example in C++ to help me?
Edit: Thank you, I fixed my problem.
Who is online
Users browsing this forum: Semrush [Bot] and 4 guests