Null texture returned when user does not change crop anchors
Cropper should return the texture regardless of whether user has changed anchor positions etc.
I commented out lines in ImageCropper.cs below as a temp fix
Line 442
/*if( !gameObject.activeInHierarchy )
{
Debug.LogError( "Cropper is not visible!" );
return null;
}*/
It shouldn't be about anchor positions. If the ImageCropper GameObject is not active in the scene, then this issue will occur. I think you're trying to crop the image programmatically without showing the ImageCropper user interface, am I correct?
Nope try running it where the user does not move any cropper point before pressing crop button - null image returned
I can't reproduce this issue in the demo scene:
https://github.com/yasirkula/UnityImageCropper/assets/10211608/88a05df0-aed1-4825-bfb3-30460576a249
Try it with unity game display set to a explicit screensize, say iphone 1170x2532
Message ID: @.***>
My previous test was on 5.6.2f1 with Free Aspect ratio. Now I've tested again with 2020.3.26f1 URP 1125x2436 fixed resolution and it worked again :)