public void UpdateVisibleFrame() { #if UNITY_EDITOR PikkartARCore.UpdateCameraTexture(imagePtr_receive); #endif if (textureToShow != null) { textureToShow.LoadRawTextureData(imagePtr_receive, Constants.CAMERA_REQUESTED_WIDTH * Constants.CAMERA_REQUESTED_HEIGHT * 4); textureToShow.Apply(); if (rawImage != null) { rawImage.texture = textureToShow; } } }