alfiare
Topic Author
Posts: 27
Joined: 30 Nov 2017, 23:47

Noesis 4.0 Android User Controls Not Rendering

11 Oct 2026, 05:29

I recently upgraded to Noesis 4.0, everything is working fine running in Unity. But on android just a basic xaml page with a user control on it, the user control fails to load/render at all. Other things like TextBlocks or Button's render fine, and they successfully get style resources from the theme etc. I have converted my user controls with the new AssetDependency attribute and everything works fine in Unity. This worked fine in 3.2 as well. What makes user controls not work on android now?
 
alfiare
Topic Author
Posts: 27
Joined: 30 Nov 2017, 23:47

Re: Noesis 4.0 Android User Controls Not Rendering

11 Oct 2026, 05:37

This also works fine in a windows build, just android seems to be a problem.
 
alfiare
Topic Author
Posts: 27
Joined: 30 Nov 2017, 23:47

Re: Noesis 4.0 Android User Controls Not Rendering

12 Oct 2026, 15:46

Did more digging...
Started a new Unity 6.6 project (URP 3D), import the noesis 4.0.0 package and the HelloWorld sample.
Create a user control TX.xaml/cs (content below) and add it to the MainPage.xaml (content below).
TC content shows in Unity (screenshot attached)
Build and Run on Android, TC user control doesn't show (screenshot attached).
Build and Run on Windows, TC content shows just like in Unity.

I tried this on both a Samsung A23 and a Zfold6, same result.

There's only one error in the Android LogCat:
2026/10/12 08:32:02.426 28710 28755 Error Unity java.lang.ClassNotFoundException: Didn't find class "com.google.android.play.core.assetpacks.AssetPackManager" on path: DexPathList[[zip file "/data/app/~~qL-1lNHnK1R86mtnINMVbQ==/com.UnityTechnologies.com.unity.template.urpblank-W5PmlbSWr7ZnEzxSa5VIdA==/base.apk"],nativeLibraryDirectories=[/data/app/~~qL-1lNHnK1R86mtnINMVbQ==/com.UnityTechnologies.com.unity.template.urpblank-W5PmlbSWr7ZnEzxSa5VIdA==/lib/arm64, /data/app/~~qL-1lNHnK1R86mtnINMVbQ==/com.UnityTechnologies.com.unity.template.urpblank-W5PmlbSWr7ZnEzxSa5VIdA==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64]]
TC.xaml
<UserControl x:Class="Samples.TC"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:noesis="clr-namespace:Noesis;assembly=Noesis.GUI"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d">
    <Grid>
        <TextBlock Text="TCTCTCTCTC" FontSize="16" Foreground="White" />
    </Grid>
</UserControl>
TC.xaml.cs
using Noesis;

namespace Samples
{
    [AssetDependency]
    public class TC : UserControl
    {
        public TC()
        {
            InitializeComponent();
        }
        
        private void InitializeComponent()
        {
            NoesisUnity.LoadComponent(this);
        }
    }
}
MainPage.xaml
<Page
  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"
  xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
  xmlns:local="clr-namespace:HelloWorld"
  xmlns:samples="clr-namespace:Samples"
  FontFamily="./#Aero Matics"
  FontSize="36"
  Background="#FF124C7A"
  Title="NoesisGUI - Hello, World!">

  <sample content omitted for brevity>

    <samples:TC HorizontalAlignment="Center" VerticalAlignment="Center"/>
    
  </Grid>
</Page>
Attachments
TC_Unity.png
TC_Android.jpg
 
User avatar
jsantos
Site Admin
Posts: 4822
Joined: 20 Jan 2012, 17:18
Contact:

Re: Noesis 4.0 Android User Controls Not Rendering

13 Oct 2026, 14:58

Could you please try the same with the 'UserControl' sample included in our package?
 
alfiare
Topic Author
Posts: 27
Joined: 30 Nov 2017, 23:47

Re: Noesis 4.0 Android User Controls Not Rendering

13 Oct 2026, 16:44

Same result with that, the NumericUpDown is not shown on Android, works fine in a Windows build and in Unity.
I tested it on an A23 with OpenGL ES and a Zfold6 with Vulcan, same on both.
Attachments
UC_Windows2.jpg
UC_Android2.jpg
 
User avatar
jsantos
Site Admin
Posts: 4822
Joined: 20 Jan 2012, 17:18
Contact:

Re: Noesis 4.0 Android User Controls Not Rendering

Today, 00:38

This is probably related to IL2CPP's code optimization, which may remove code it considers "unused"

Please create a ticket about it.

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 5 guests