Oliver Smith

Results 22 issues of Oliver Smith

When editing a UI prefab in the scene, if you have a CanvasScaler or are using a ScreenSpace canvas with a Render Camera set, the shape's scale seems to be...

bug

This is because Configure() gets called in Start(), so that won't have run yet and the rectTransform var won't be set up. A workaround should be to call Configure() manually...

bug

Had a report from a user that in URP, convert to sprite leaves you with a fully transparent PNG. When they switched back to the built-in pipeline it worked. Have...

bug

If you're editing a prefab and click Convert to Sprite, you just get a blank sprite.

bug

User reports that polygon shapes are just black boxes on iPad. Possible shader compilation error but unable to figure it out. Other shape types including path worked fine.

bug

Can we put the prepare() math into the vert shader, and would that improve performance?

enhancement

Easy fix is: in Shapes2D/Scripts/Shapes.cs, change the lines at 1514,1515 from this: ``` w = Mathf.Max(1, Mathf.RoundToInt(bounds.size.x / scaleFactor)); h = Mathf.Max(1, Mathf.RoundToInt(bounds.size.y / scaleFactor)); ``` to: ``` w =...

enhancement

This would help in cases where you have a PolygonCollider2D with points that don't fit inside a 1x1 rect. Some example code below that would do this for a poly...

enhancement

But according to a user it can be made to work easily by following the instructions on this page: https://docs.unity3d.com/Manual/SinglePassInstancing.html

enhancement

I haven't looked into this yet, just noting here for future reference that it doesn't work...however UI Shapes do work with Mask/RectMask2D.

enhancement