Search found 68 matches

by asusralis
29 Jul 2019, 17:30
Forum: General Discussion
Replies: 7
Views: 2189

Using the delegate version of VisualTree.HitTest crashes Unity

Noesis.Visual root = (Noesis.Visual)Noesis.VisualTreeHelper.GetRoot(view.Content); Noesis.HitTestResult result = null; Noesis.VisualTreeHelper.HitTest(root, (target) => { var element = target as Noesis.UIElement; if ((element != null) && (!element.IsHitTestVisible || !element.IsVisible)) { return N...
by asusralis
09 Jul 2019, 21:11
Forum: General Discussion
Replies: 4
Views: 1896

Re: Premultiplied images not working properly in Unity.

It seems I restarted Unity and it was fixed, but what do you mean by a label? Is it a field on the texture setting? I don't remember ever having to set a label to Noesis on a texture.
by asusralis
08 Jul 2019, 19:13
Forum: General Discussion
Replies: 4
Views: 1896

Premultiplied images not working properly in Unity.

I've tried multiplying an icon in both paint.net and a custom Unity post processor and both have the same problem. https://forums.getpaint.net/topic/113378-premultiply-alpha/ https://gist.github.com/MrJul/1042aa75493a58ceeb6d2fa7d7d039c3 Image: https://i.imgur.com/5tFnuEE.png In game: https://i.imgu...
by asusralis
23 Jun 2019, 22:30
Forum: General Discussion
Replies: 3
Views: 1875

Re: Noesis not being rendered on Android

That was the problem, thanks! No Unity project I've started ever had that as the default renderer, so I guess they recently changed that.
by asusralis
20 Jun 2019, 17:41
Forum: General Discussion
Replies: 5
Views: 1837

Re: Performance hit from simple binding

Would this have also caused the memory leak?And if I'm binding to structures, try to avoid converters for now?

Lastly, is there a reason why something like this doesn't work with DateTime in Noesis: StringFormat='{}{0:dd/MM/yyyy}' ? I could not get any of the DateTime formats to work like this.
by asusralis
20 Jun 2019, 03:55
Forum: General Discussion
Replies: 3
Views: 1875

Noesis not being rendered on Android

Like the title says, when I build to Android using Unity buttons can be clicked and the UI blocks taps, but nothing is rendered. Unity 2019.1.5/Noesis 2.2.3.
by asusralis
19 Jun 2019, 21:39
Forum: General Discussion
Replies: 2
Views: 1792

Re: Trying to create a relative canvas

Ah, I see! Thank you very much.
by asusralis
19 Jun 2019, 21:37
Forum: General Discussion
Replies: 5
Views: 1837

Re: Performance hit from simple binding

It fixed it - when changing to what you suggested, it now takes .21ms: https://i.imgur.com/yZ7Sh1D.png

Is there something wrong with the converter I wrote?
by asusralis
18 Jun 2019, 18:34
Forum: General Discussion
Replies: 2
Views: 1792

Trying to create a relative canvas

I wanted to create a canvas that has two attached properties that take a percentage of the canvas and put the element in that position. So, if a canvas is 400x400, and the XRatio and YRatio are 0.5, the element would be positioned at 200x200. protected override Size ArrangeOverride(Size arrangeSize)...
by asusralis
18 Jun 2019, 14:41
Forum: General Discussion
Replies: 5
Views: 1837

Performance hit from simple binding

I have a DateTime that I'm updating every frame, and it's surprisingly taking a lot of cpu time. Where it's updated: private void UpdateTime() { DeltaTime = TimeSpan.FromMinutes(Time.deltaTime * 4); _game.Player.Time += DeltaTime; } <TextBlock FontSize="30" Foreground="White" VerticalAlignment="Cent...