landongrant
Topic Author
Posts: 4
Joined: 16 Jun 2025, 17:30

Unreal + Noesis Custom Converter Trouble

31 Jul 2025, 18:52

Hi, I am trying to create a custom converter in c# to use in xaml so that I can convert from a type like int/string to a source path of an image.

I believe that I have written the correct conversion logic in c# but for some reason my .xaml fails to identify the converter.
Unknown element type 'local:ValueToSourceConverter' (Project.ValueToSourceConverter)
Not sure what I am missing, but I feel like the C# code isn't building.

I've tried putting the converter in:
- Source folder of my Unreal Project.
- Content/UI folder (where my xaml is located.)

Have also tried different variations
<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:Project"
    mc:Ignorable="d">
    
       <local:ValueToSourceConverter x:Key="ValueToSourceConverter" /> 
Does anyone have experience setting up custom converters with Noesis + Unreal?
 
User avatar
sfernandez
Site Admin
Posts: 3363
Joined: 22 Dec 2011, 19:20

Re: Unreal + Noesis Custom Converter Trouble

04 Aug 2025, 13:11

Hi,

C# converters are only used by the Blend project. You have to create a C++ version of the Converter that is compiled in the Unreal project in order to use it in Unreal.

You can see how we're doing it in our DataBinding sample included with the .zip you downloaded. There is a class named OrbitConverter in C# under <SamplesProject>/Assets/DataBinding/DataBinding that is used in Blend to design and test the UI. Then there is a C++ version under <SamplesProject>/Source/DataBinding that is used by Unreal.

As explained in our documentation custom classes need to be registered as you can see in DataBindingGame.cpp:
    virtual void StartupModule() override
    {
        Noesis::RegisterComponent<DataBinding::OrbitConverter>();
    }
Could you try that?
 
landongrant
Topic Author
Posts: 4
Joined: 16 Jun 2025, 17:30

Re: Unreal + Noesis Custom Converter Trouble

05 Aug 2025, 21:48

Exactly what I was looking for!

Thank you so much.
 
User avatar
jsantos
Site Admin
Posts: 4822
Joined: 20 Jan 2012, 17:18
Contact:

Re: Unreal + Noesis Custom Converter Trouble

06 Aug 2025, 02:02

Thanks for the feedback! Marking this as solved

Who is online

Users browsing this forum: No registered users and 5 guests