docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Platform

    Platform base class.

    Inheritance
    object
    Platform
    TestPlatform
    Implements
    IEquatable<Platform>
    Inherited Members
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Build
    Assembly: solution.dll
    Syntax
    public abstract class Platform : IEquatable<Platform>

    Properties

    Name Description
    AvailablePlatforms

    All available platforms.

    DisplayName

    Platform display name. Used for displaying on user interface.

    HasPackage

    Determine if the platform has a known package.

    IconPath

    Platform icon file path.

    IsPackageInstalled

    Determine if the platform package is installed.

    IsPublic

    Determine if the platform is public, or closed (require license to use).

    Name

    Platform short name. Used by serialization.

    PackageId

    Platform package identifier.

    Methods

    Name Description
    Equals(object)

    Determines whether the specified object is equal to the current object.

    Equals(Platform)

    Indicates whether the current object is equal to another object of the same type.

    GetHashCode()

    Serves as the default hash function.

    GetNameFromLegacyName(string)

    Get current platform name.

    GetPlatformByName(string)

    Get platform by name.

    InstallPackage()

    Start installation of platform package.

    Operators

    Name Description
    operator ==(Platform, Platform)
    operator !=(Platform, Platform)

    Extension Methods

    BuildTargetExtensions.GetBuildTarget(Platform)
    BuildTargetExtensions.GetBuildTargetGroup(Platform)
    PlatformExtensions.InstallModule(Platform)
    PlatformExtensions.IsActiveBuildTarget(Platform)
    PlatformExtensions.IsModuleInstalled(Platform)
    PlatformExtensions.SetActiveBuildTargetAsync(Platform)
    PlatformExtensions.GetIcon(Platform)
    In This Article
    Back to top
    Copyright © 2024 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)