Skip to main content
Version: 2.x

Class PlatformLocations

This class file helps covering the platform specific requirements of the ODIN package as install locations will vary based on how it is installed.

  • Installing from git$PROJECT_PATH/Library/PackageCache/io.fourplayers.odin@$COMMIT_HASH
  • Installing from Unity asset store$PROJECT_PATH/Assets/4Players/ODIN
  • Installing from tarball$PROJECT_PATH/Assets/io.fourplayers.odin
  • Installing from Unity package bundle$PROJECT_PATH/Packages/io.fourplayers.odin

Assembly: cs.temp.dll.dll
Declaration
public static class PlatformLocations

Properties

LibraryCache

Declaration
public static string LibraryCache { get; }

Fields

PackageName

Declaration
public const string PackageName = "io.fourplayers.odin"

PackageVendor

Declaration
public const string PackageVendor = "4Players"

PackageShortName

Declaration
public const string PackageShortName = "ODIN"

AssetPath

Declaration
public const string AssetPath = "Assets/io.fourplayers.odin/Plugins"

AssetStorePath

Declaration
public const string AssetStorePath = "Assets/4Players/ODIN/Plugins"

TarballPath

Declaration
public const string TarballPath = "Assets/io.fourplayers.odin/Plugins"

PackagePath

Declaration
public const string PackagePath = "Packages/io.fourplayers.odin/Plugins"

BinaryLocations

Declaration
public static readonly IReadOnlyCollection<PlatformBinaryLocations> BinaryLocations

Methods

IsGit()

Declaration
public static bool IsGit()
Returns

System.Boolean

IsUnityStore()

Declaration
public static bool IsUnityStore()
Returns

System.Boolean

IsTarball()

Declaration
public static bool IsTarball()
Returns

System.Boolean

IsPackageBundle()

Declaration
public static bool IsPackageBundle()
Returns

System.Boolean

IsCustom()

Declaration
public static bool IsCustom()
Returns

System.Boolean

GetPaths(SupportedPlatform, bool)

Declaration
public static IEnumerable<string> GetPaths(SupportedPlatform platform, bool is64Bit)
Returns

Odin.IEnumerable<System.String>

Parameters
TypeName
OdinNative.Core.Platform.SupportedPlatformplatform
System.Booleanis64Bit