Show / Hide Table of Contents

Class ScriptDistro

Run a script with the result of a Build Profile build.

Inheritance
System.Object
UnityEngine.Object
UnityEngine.ScriptableObject
DistroBase
ScriptDistro
Inherited Members
DistroBase.builds
DistroBase.CanRunWithoutBuildTargets
DistroBase.IsRunning
DistroBase.HasAllBuilds()
DistroBase.Build()
DistroBase.Distribute()
DistroBase.Distribute(Boolean)
DistroBase.ForceCancel()
DistroBase.Cancel()
DistroBase.BuildAndGetBuildPaths(Boolean)
DistroBase.DistributeCoroutine(Boolean)
DistroBase.runningScripts
DistroBase.Execute(String, String, String, Action<String>, Action<String>)
DistroBase.Execute(ProcessStartInfo, String, Action<String>, Action<String>)
DistroBase.RunCoroutine(IEnumerator)
DistroBase.GetSubroutineResult<T>()
Namespace: sttz.Trimmer.Editor
Assembly: Trimmer-Editor.dll
Syntax
[CreateAssetMenu(fileName = "Script Distro.asset", menuName = "Trimmer/Script", order = 100)]
public class ScriptDistro : DistroBase
Remarks

The distribution supports two main modes, controlled with the individual option:

  • Combined: Call the script only once, independent of how many builds are being processed. Variables:
  • "{targets}": Space-separated list of quoted build targets
  • "{paths}": Space-separated list of quoted build paths
  • "{targetspaths}": Space-separated list of quoted target and path pairs
  • Individual: Call the script for each build. Variables:
  • "{target}": Quoted build target name
  • "{path}": Quoted path to build

Both modes support the "{project}" variable, which is replaced with a quoted string to the project's Assets folder.

Fields

| Improve this Doc View Source

arguments

Declaration
public string arguments
Field Value
Type Description
System.String
| Improve this Doc View Source

individual

Declaration
public bool individual
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

scriptPath

Declaration
public string scriptPath
Field Value
Type Description
System.String

Methods

| Improve this Doc View Source

DistributeCoroutine(IEnumerable<DistroBase.BuildPath>, Boolean)

Declaration
protected override IEnumerator DistributeCoroutine(IEnumerable<DistroBase.BuildPath> buildPaths, bool forceBuild)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<DistroBase.BuildPath> buildPaths
System.Boolean forceBuild
Returns
Type Description
System.Collections.IEnumerator
Overrides
DistroBase.DistributeCoroutine(IEnumerable<DistroBase.BuildPath>, Boolean)
  • Improve this Doc
  • View Source
Back to top © 2017 Adrian Stutz