Search Unity

Bug Missing upgrade guide for ARSessionOrigin.MakeContentAppearAt

Discussion in 'AR' started by fherbst, Feb 14, 2022.

  1. fherbst

    fherbst

    Joined:
    Jun 24, 2012
    Posts:
    802
    Since ARFoundation 5.x merges the subsystems package and replaces ARSessionOrigin (which had AR-specific methods) with XROrigin, it seems that some of the existing API has vanished as well.

    Since the ARFoundation-Samples Repo hasn't been updated to 5.x either, I'm a bit left in the dark here. We want to test 5.x early to provide feedback but it seems that that's not really possible when part of the previous API surface is missing.

    Would someone from Unity be able to
    - point me to the replacement for MakeContentAppearAt?
    - update the Migration Guide in the 5.x package to make that clear?

    Thanks!
     
    henryqng, TheVirtualMunk and gersart like this.
  2. KibsgaardUnityStudios

    KibsgaardUnityStudios

    Joined:
    Jul 4, 2017
    Posts:
    8
    This is now included in the migration guide for 5.x:
    https://docs.unity3d.com/Packages/c...nual/version-history/migration-guide-5-x.html

    MakeContentAppearAt has been removed and you can recreate it as an extension method. It is now included in the ARFooundation-samples
    https://github.com/Unity-Technologi...lob/main/Assets/Scripts/XROriginExtensions.cs

    I'm linking to it here, as this is still the top Google result.

    Relevant github issue:
    https://github.com/Unity-Technologies/arfoundation-samples/issues/950
     
    andyb-unity likes this.