Hello,
I have encountered a problem with UISprite.
When tiled sprite fits into UISprite more than 100 times by one of the dimentions, induvidual tiles are being scaled to 1:1 width to height ratio.
and the following warning message appears in unity log:
The tiled sprite
("UI Root (2D)/MenuCamera/MainMenu/Panel/Sprite") is too small
.Consider using a bigger one.
UnityEngine.Debug:LogWarning(Object)
UISprite:TiledFill(BetterList`1, BetterList`1, BetterList`1) (at Assets/Packages/NGUI/Scripts/UI/UISprite.cs:1073)
UISprite:OnFill(BetterList`1, BetterList`1, BetterList`1) (at Assets/Packages/NGUI/Scripts/UI/UISprite.cs:535)
UIWidget:UpdateGeometry(UIPanel, Boolean) (at Assets/Packages/NGUI/Scripts/Internal/UIWidget.cs:697)
UIPanel:LateUpdate() (at Assets/Packages/NGUI/Scripts/UI/UIPanel.cs:1074)
Is it a bug or intended behavior, if it is intended could you please elaborate why is it so?
UPDATE:looked into
UISprite:TiledFill This is happening because of this condition
// Safety check. Useful so Unity doesn't run out of memory if the sprites are too small.
if (width < 0.01f || height < 0.01f)
{
Debug.LogWarning("The tiled sprite (" + NGUITools.GetHierarchy(gameObject) + ") is too small.\nConsider using a bigger one.");
width = 0.01f;
height = 0.01f;
}
as you can see if either one of width or height is less than 0.01 both are forced to 0.01 which seems to be a mistake