UnityNativeCamera icon indicating copy to clipboard operation
UnityNativeCamera copied to clipboard

iOS TakePicture image having same name

Open ragavendranbala-TSL opened this issue 7 months ago • 1 comments

If I call NativeCamera.TakeImage on iOS, it's always giving the same name file(CameraImg). Because of this the old file references are getting deleted. It's working file on android where I'm getting different file names

ragavendranbala-TSL avatar Jun 03 '25 10:06 ragavendranbala-TSL

I can't remember the Android logic but I wouldn't actually be surprised to see the same logic as iOS. The returned image file is a temporary file in Application.temporaryCachePath. If you need to preserve it for future use, you have to copy it to Application.persistentDataPath with a unique name of your choice.

yasirkula avatar Jun 03 '25 15:06 yasirkula