View Issue Details

IDProjectCategoryView StatusLast Update
0001971NoesisGUIUnrealpublic2021-05-04 02:44
Reportersergey_sitnikov_ninjatheoryAssigned Tosfernandez 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
Product Version3.0.10 
Target Version3.0.12Fixed in Version3.0.12 
Summary0001971: Vanilla TextBox is not rendered/working correctly in UE4
DescriptionHello guys,

We are having issues with vanilla TextBox control in UE4. When it is imported to Unreal it is shown with a purple background (I guess, some expected component is missing) and it doesn't accept any input events (see attached screenshot). However, the same xaml works correctly in XamlPlayer v3.0.6 and v3.0.11 (I don't have v3.0.10 at the moment).

Here is a simple xaml I used:

<ContentControl
        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"
        mc:Ignorable="d"
        d:DesignWidth="1920" d:DesignHeight="1080">

    <Grid x:Name="Grid">
        <TextBox Width="100" Height="30" Text="HELLO TO YOU" />
    </Grid>
</ContentControl>

Cheers,
Sergey
Steps To Reproduce1. Create a xaml file using provided example
2. Drag and drop that file into UE4 (4.26 in our case and Noesis plugin version is 3.0.10)
3. Add xaml to viewport and launch PIE
4. Observe the result

5. Drag and drop created xaml file into XamlPlayer
6. Observe the result
TagsTextBox, UE4, xaml
PlatformAny

Activities

sergey_sitnikov_ninjatheory

sergey_sitnikov_ninjatheory

2021-04-16 11:10

reporter  

TextBoxBug_UE4.jpg (4,109 bytes)
TextBoxBug_UE4.jpg (4,109 bytes)
jsantos

jsantos

2021-04-16 11:13

manager   ~0007151

Last edited: 2021-04-16 11:14

View 2 revisions

It seems the style for the TextBox is missing (the minimal internal theme just use pink for everything to detect this).

Is this using our default theme?

Can you hellp here @sfernandez?

sergey_sitnikov_ninjatheory

sergey_sitnikov_ninjatheory

2021-04-16 11:15

reporter   ~0007152

No, this is without any themes at all.
jsantos

jsantos

2021-04-16 11:19

manager   ~0007153

Last edited: 2021-04-16 11:19

View 2 revisions

This is normal then, without theme, our controls display pink.

https://www.noesisengine.com/docs/Gui.Core.StylingTutorial.html#default-styles

We are doing this for performance reasons, to avoid loading a default theme that later is going to be overriden by each client.

sergey_sitnikov_ninjatheory

sergey_sitnikov_ninjatheory

2021-04-16 11:24

reporter   ~0007154

Ok, thank you. So we always need to redefine default scheme. Why does it work in XamlPlayer in that case?
jsantos

jsantos

2021-04-16 11:38

manager   ~0007155

XamlPlayer is embedding our Noesis theme (https://www.noesisengine.com/docs/Gui.Core.ApplicationTutorial.html#noesis-theme) and setting it at launch time.

You can do the same in unreal, the same theme is available at /Content/Theme and you can set it in settings.

Please, let me know if you need more help with this.
jsantos

jsantos

2021-04-16 11:39

manager   ~0007156

In Unity, we have a visual studio extension that setups a minimal projects with everything ready and our theme.

I think we should have the same for unreal.
sergey_sitnikov_ninjatheory

sergey_sitnikov_ninjatheory

2021-04-16 11:58

reporter   ~0007157

Thank you for your help Jesus. We will look at those themes.

Issue History

Date Modified Username Field Change
2021-04-16 11:10 sergey_sitnikov_ninjatheory New Issue
2021-04-16 11:10 sergey_sitnikov_ninjatheory Tag Attached: TextBox
2021-04-16 11:10 sergey_sitnikov_ninjatheory Tag Attached: UE4
2021-04-16 11:10 sergey_sitnikov_ninjatheory Tag Attached: xaml
2021-04-16 11:10 sergey_sitnikov_ninjatheory File Added: TextBoxBug_UE4.jpg
2021-04-16 11:10 sergey_sitnikov_ninjatheory File Added: TextBoxRenderedCorrectly_XamlPlayer.jpg
2021-04-16 11:13 jsantos Assigned To => sfernandez
2021-04-16 11:13 jsantos Status new => assigned
2021-04-16 11:13 jsantos Target Version => 3.0.12
2021-04-16 11:13 jsantos Description Updated View Revisions
2021-04-16 11:13 jsantos Steps to Reproduce Updated View Revisions
2021-04-16 11:13 jsantos Note Added: 0007151
2021-04-16 11:14 jsantos Note Edited: 0007151 View Revisions
2021-04-16 11:15 sergey_sitnikov_ninjatheory Note Added: 0007152
2021-04-16 11:19 jsantos Note Added: 0007153
2021-04-16 11:19 jsantos Note Edited: 0007153 View Revisions
2021-04-16 11:24 sergey_sitnikov_ninjatheory Note Added: 0007154
2021-04-16 11:38 jsantos Note Added: 0007155
2021-04-16 11:38 jsantos Status assigned => feedback
2021-04-16 11:39 jsantos Note Added: 0007156
2021-04-16 11:58 sergey_sitnikov_ninjatheory Note Added: 0007157
2021-04-16 11:58 sergey_sitnikov_ninjatheory Status feedback => assigned
2021-05-04 02:41 jsantos Target Version 3.0.12 => 3.0.13
2021-05-04 02:44 jsantos Status assigned => resolved
2021-05-04 02:44 jsantos Resolution open => no change required
2021-05-04 02:44 jsantos Fixed in Version => 3.0.12
2021-05-04 02:44 jsantos Target Version 3.0.13 => 3.0.12