kaijin
Topic Author
Posts: 5
Joined: 29 Feb 2024, 18:54

Unreal Localization with Rive objects?

12 Apr 2024, 18:28

I'm wondering if localization with Rive objects is possible? If it is, I feel like I'm close, but missing a crucial piece.

From this recent Rive video, I've named the text run in Rive before exporting

I then bound the variable in XAML, but perhaps the binding type is incorrect?
Image

Then I tried to get/set the variable in my View blueprint, but doesn't seem to be doing anything
Image

I even found this bug listing that's marked as resolved, but doesn't look like the implementation was explained?
https://www.noesisengine.com/bugs/view.php?id=2709

Any help would be greatly appreciated!
 
User avatar
hcpizzi
Site Admin
Posts: 323
Joined: 09 Feb 2012, 12:40

Re: Unreal Localization with Rive objects?

12 Apr 2024, 19:07

Hi,

You need to use a RiveRun, not a RiveInput. It would look something like this:
<noesis:RiveControl Source="rivs/button05b.riv" Margin="472, 392, 472, 216" Width="336" Height="112">
	<noesis:RiveControl:Runs>
		<noesis:RiveRun RunName="bText" RunText="{Binding bText}"/>
	</noesis:RiveControl:Runs>
</noesis:RiveControl>
Hope this helps!
 
kaijin
Topic Author
Posts: 5
Joined: 29 Feb 2024, 18:54

Re: Unreal Localization with Rive objects?

12 Apr 2024, 19:59

That did help thank you! I found this class reference thanks to your code
https://www.noesisengine.com/docs/App.R ... s_doc_wrap

I have some XAML errors now and getting Invalid Markup rather than any display in VSS Blend. But in engine it's working as intended and I can change the text in my Rive object from Unreal!
 
kaijin
Topic Author
Posts: 5
Joined: 29 Feb 2024, 18:54

Re: Unreal Localization with Rive objects?

12 Apr 2024, 22:36

Might as well post here, having trouble tracking this down:
XLS0415	The attachable property 'Runs' was not found in type 'RiveControl'.
XLS0414	The type 'noesis:RiveRun' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
The tag 'RiveControl.Runs' does not exist in XML namespace 'clr-namespace:NoesisGUIExtensions;assembly=Noesis.GUI.Extensions'. 
I tried to rebuild a few times, and some of the different Noesis packages to no avail. I thought it was a little weird that all the packages except Noesis.GUI.Extensions say v3.2.3, but Extensions is specifically v3.0.28?

I understand that I won't be able to see the content of Rive files in VS Blend, but this counts as Invalid Markup and stops the display entirely so I can't do any visual layout in Blend. For reference, I see similar errors (67 errors and Invalid Markup window) trying to open the sample Rive project.
 
User avatar
sfernandez
Site Admin
Posts: 3001
Joined: 22 Dec 2011, 19:20

Re: Unreal Localization with Rive objects?

19 Apr 2024, 17:17

Hi, the Noesis.GUI.Extension was not including the new Runs property and RiveRun definitions.
We've updated the nuget to include them and now it should work as expected, please check v3.0.30.
 
kaijin
Topic Author
Posts: 5
Joined: 29 Feb 2024, 18:54

Re: Unreal Localization with Rive objects?

19 Apr 2024, 17:50

Hey the designer preview is back! Thanks for the update!

There's still an error in VS, but doesn't appear to trigger Invalid Markup
XDG0005	Could not load file or assembly 'Noesis.GUI.Extensions, Version=3.0.30.13778, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
 
User avatar
sfernandez
Site Admin
Posts: 3001
Joined: 22 Dec 2011, 19:20

Re: Unreal Localization with Rive objects?

22 Apr 2024, 13:27

Hmm... weird, are you using Visual Studio 2022 or 2019? Have you tried to clean the project and rebuild?
 
kaijin
Topic Author
Posts: 5
Joined: 29 Feb 2024, 18:54

Re: Unreal Localization with Rive objects?

22 Apr 2024, 17:51

2022. Clean and rebuild fixed it up, thanks!

Who is online

Users browsing this forum: No registered users and 6 guests