Skip to main content

Class BasePlatform

Namespace: RealityCollective.ServiceFramework.Definitions.Platforms

Base platform class to derive all IPlatforms from.

public abstract class BasePlatform : IPlatform

Inheritance​

object ← BasePlatform

Derived​

AllPlatforms, AndroidPlatform, CurrentBuildTargetPlatform, EditorPlatform, IOSPlatform, LinuxPlatform, OSXPlatform, PS4Platform, PS5Platform, TVOSPlatform, UniversalWindowsPlatform, VisionOSPlatform, WebGlPlatform, WindowsStandalonePlatform, XboxPlatform

Implements​

IPlatform

Properties​

IsAvailable​

Is this platform currently available?

public virtual bool IsAvailable { get; }

Property Value​

bool

IsBuildTargetAvailable​

The this platform build target available?

public virtual bool IsBuildTargetAvailable { get; }

Property Value​

bool

Remarks​

Only returns true in editor.

Name​

The human readable name for this platform.

public string Name { get; }

Property Value​

string

PlatformOverrides​

The list of platforms that this specific platform will override and make the others return not available.

public virtual IPlatform[] PlatformOverrides { get; }

Property Value​

IPlatform[]

ValidBuildTargets​

The array of valid UnityEditor.BuildTargets.

public virtual UnityEditor.BuildTarget[] ValidBuildTargets { get; }

Property Value​

UnityEditor.BuildTarget[]

Methods​

Equals(object)​

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

public override bool Equals(object other)

Parameters​

other object

Returns​

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()​

Serves as the default hash function.

public override int GetHashCode()

Returns​

int

A hash code for the current object.