Property InternalIdTransformFunc
InternalIdTransformFunc
Functor to transform internal ids before being used by the providers.
선언
public static Func<IResourceLocation, string> InternalIdTransformFunc { get; set; }
프로퍼티 값
타입 | 설명 |
---|---|
Func<IResourceLocation, string> | A function taking an IResourceLocation and returning a transformed string location. |
참고
Used to assign a function to the 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 ResourceManager.
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.
///