Search Unity

Question AR JS Problems and Web AR

Discussion in 'AR' started by Tobias234, Jun 22, 2021.

  1. Tobias234

    Tobias234

    Joined:
    Apr 16, 2021
    Posts:
    14
    Hello,
    has anyone else this Problem with AR.js Unity that after I added the files and tried to create an Image Target from AR js I got this error:

    ArgumentException: The Object you want to instantiate is null.
    UnityEngine.Object.CheckNullArgument (System.Object arg, System.String message) (at <e5b75411c8cd4bfaa9e760be20206f29>:0)
    UnityEngine.Object.Instantiate (UnityEngine.Object original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation) (at <e5b75411c8cd4bfaa9e760be20206f29>:0)
    UnityEngine.Object.Instantiate[T] (T original, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation) (at <e5b75411c8cd4bfaa9e760be20206f29>:0)
    ARGameObjectCreator.PlaceImageTargetPrefabInScene () (at Assets/ARjs_Unity/ARjs_Unity-master/Editor/ARGameObjectCreator.cs:18)
    UnityEditor.GenericMenu:CatchMenu(Object, String[], Int32)


    DId anyone else encounter this Problem? I also had it with the version 2020.3.12f1 and the version 2019.4.13f1.
    If so than please give me an answer how to fix this.

    If not than I ask if there is web-ar support from unity and what is it? Are there also good tutorials for beginners?
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,820
    Unity does not support AR.js.
     
  3. agneya_1402

    agneya_1402

    Joined:
    Feb 4, 2021
    Posts:
    1
    Got the same error but I made the same thing a year ago and it worked but can’t find that project file