docs.unity.cn
    Show / Hide Table of Contents

    Class PlatformMappingService

    Determines the Addressables build platform that should be used based on the target player build platform.

    Inheritance
    Object
    PlatformMappingService
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.AddressableAssets
    Syntax
    public class PlatformMappingService

    Methods

    GetPlatform()

    Retrieves the Addressables build platform that is being used.

    Declaration
    [Obsolete("This API doesn't adapt to the addition of new platforms.  Use GetPlatformPathSubFolder instead.")]
    public static AddressablesPlatform GetPlatform()
    Returns
    Type Description
    AddressablesPlatform

    Returns the Addressables build platform that is being used.

    GetPlatformPathSubFolder()

    Retrieves the Addressables platform subfolder of the build platform that is being used.

    Declaration
    public static string GetPlatformPathSubFolder()
    Returns
    Type Description
    String

    Returns the Addressables platform subfolder of the build platform that is being used.

    Back to top Copyright © 2021 Unity Technologies
    Generated by DocFX
    on 04 November 2021
    Terms of use