docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Property InternalIdTransformFunc

    InternalIdTransformFunc

    Functor to transform internal ids before being used by the providers.

    Declaration
    public static Func<IResourceLocation, string> InternalIdTransformFunc { get; set; }
    Property Value
    Type Description
    Func<IResourceLocation, string>

    A function taking an IResourceLocation and returning a transformed string location.

    Remarks

    Used to assign a function to the [ResourceManager](xref:UnityEngine.ResourceManagement.ResourceManager) that replaces location identifiers used at runtime. This is useful when you want to load assets from a different location than the one specified in the content catalog, for example downloading a remote AssetBundle from a different URL.

     Assigning this value through the Addressables object will set the value on the <xref href="UnityEngine.ResourceManagement.ResourceManager" data-throw-if-not-resolved="false"></xref>.
    
     The example below instantiates a GameObject from a local AssetBundle. The location identifier of the bundle is replaced with a file URI, and so the bundle is loaded via UnityWebRequest.</p>
    
      
    
    See Also
    Transforming resource URLs
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)