Noesis 4.0 Android User Controls Not Rendering
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?
Re: Noesis 4.0 Android User Controls Not Rendering
This also works fine in a windows build, just android seems to be a problem.
Re: Noesis 4.0 Android User Controls Not Rendering
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:
TC.xaml.cs
MainPage.xaml
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:
TC.xaml2026/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]]
Code: Select all
<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>Code: Select all
using Noesis;
namespace Samples
{
[AssetDependency]
public class TC : UserControl
{
public TC()
{
InitializeComponent();
}
private void InitializeComponent()
{
NoesisUnity.LoadComponent(this);
}
}
}Code: Select all
<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>Re: Noesis 4.0 Android User Controls Not Rendering
Could you please try the same with the 'UserControl' sample included in our package?
Re: Noesis 4.0 Android User Controls Not Rendering
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.
I tested it on an A23 with OpenGL ES and a Zfold6 with Vulcan, same on both.
Re: Noesis 4.0 Android User Controls Not Rendering
This is probably related to IL2CPP's code optimization, which may remove code it considers "unused"
Please create a ticket about it.
Please create a ticket about it.
Who is online
Users browsing this forum: Baidu [Spider], Bing [Bot] and 5 guests