Skip to content

When I use the AR camera I can't use the method "GetImageFromGallery" to select the picture, and call back is null #323

Description

@RobinGitNa

After careful investigation, the problem was found in the NGMediaReceiveCallbackiOS class,
private void Update()
{
if( IsBusy )
{
if( Time.realtimeSinceStartup >= nextBusyCheckTime )
{
nextBusyCheckTime = Time.realtimeSinceStartup + 1f;

				if( _NativeGallery_IsMediaPickerBusy() == 0 )
				{
					IsBusy = false;

					NativeGallery.MediaPickCallback _callback = callback;
					callback = null;

					NativeGallery.MediaPickMultipleCallback _callbackMultiple = callbackMultiple;
					callbackMultiple = null;

					if( _callback != null )
						_callback( null );

					if( _callbackMultiple != null )
						_callbackMultiple( null );
				}
			}
		}
	}

So I would like to know what the above method means, and will it have any effect after disabling it?Thank you so much!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions