Guest User

Untitled

a guest
Jan 16th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. _imageTexture2D = new Texture2D(600, 600, TextureFormat.RGB24, false);
  2. _rawImage.texture = _imageTexture2D;
  3. _imageTexture2D.Apply();
  4. intPtr = _imageTexture2D.GetNativeTexturePtr()
  5. _ajc = tempAjc.CallStatic<AndroidJavaObject>("CreateInstance", intPtr.ToInt32());
  6.  
  7. mSurfaceTexture = new SurfaceTexture(mTextureId);
  8.  
  9. mSurfaceTexture.updateTexImage();
Add Comment
Please, Sign In to add comment