UnityOptions

data class UnityOptions(var splashMode: Int = 0, var splashEnable: Boolean = false, var buildId: String = "", var version: String = "", var notchConfig: String = "", var ndkVersion: String = "", var ndkPath: String = "", var platforms: List<PlatformArch> = emptyList(), var configuration: Configuration = Configuration.Debug, var streamingAssets: List<String> = emptyList(), var exportedProjectLocation: String = "", var libraryName: String = "unityLibrary", var exportFolder: String = "")

Represents the options for building a Unity project.

Parameters

splashMode

The splash mode to use. This can be one of the following values:

  • 0: No splash.

  • 1: Use the Unity logo as the splash.

  • 2: Use a custom splash image.

splashEnable

Whether to enable the splash screen.

buildId

The build ID.

version

The version of the Unity project.

notchConfig

The notch configuration. This can be one of the following values:

  • "none": No notch.

  • "left": Notch on the left.

  • "right": Notch on the right.

  • "both": Notch on both sides.

ndkVersion

The version of the NDK to use.

ndkPath

The path to the NDK.

platforms

The list of platforms to build for.

configuration

The build configuration. This can be one of the following values:

  • "Debug": Build a debug configuration.

  • "Release": Build a release configuration.

streamingAssets

The list of streaming assets to include in the build.

exportFolder

The folder to export the build to.

libraryName

The name of the library to create.

Constructors

Link copied to clipboard
constructor(splashMode: Int = 0, splashEnable: Boolean = false, buildId: String = "", version: String = "", notchConfig: String = "", ndkVersion: String = "", ndkPath: String = "", platforms: List<PlatformArch> = emptyList(), configuration: Configuration = Configuration.Debug, streamingAssets: List<String> = emptyList(), exportedProjectLocation: String = "", libraryName: String = "unityLibrary", exportFolder: String = "")

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard