LoginSignup
0
0

More than 5 years have passed since last update.

UnityARImageAnchorが動作しない件について一時的な回避策 "UnityARImageAnchor" does not work.

Posted at

"UnityARImageAnchor" does not work.
UnityARImageAnchorが動作しない件について一時的な回避策(解決策?) (Unity Arkit 1.5 exampleが動かない)

unity のARKit をcloneしてきて、exampleを動かしたら動かなかった。Xcodeのエラーログを見たら、下記の様なエラーが出てきた。

2018-11-08 09:24:35.177115+0900 ar[911:185114] [Session] Session (0x107b30e60): did fail with error: Error Domain=com.apple.arkit.error Code=300 "Invalid reference image." UserInfo={NSLocalizedFailureReason=One or more reference images have an invalid size: unitywhiteonblack, unitylogoreferenceimage, NSLocalizedRecoverySuggestion=Make sure that all reference images are greater than 100 pixels and have a positive physical size in meters., ARErrorItems=(
    unitywhiteonblack,
    unitylogoreferenceimage
), NSLocalizedDescription=Invalid reference image.}

solution

下記のファイルをpngからjpgに変換すれば解決します。

  • UnityARImageAnchor/ReferenceImages/unitylogowhiteonblack.png
  • UnityARImageAnchor/ReferenceImages/unitylogoblackonwhite.png
    Screen Shot 2018-11-08 at 10.29.49.png
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0