Class SceneBundleWriteOperation
Explicit implementation for writing a scene serialized file that can be used with the Asset Bundle systems.
Implements
Inherited Members
Namespace: UnityEditor .Build.Pipeline.WriteTypes
Assembly: Unity.ScriptableBuildPipeline.Editor.dll
Syntax
[Serializable]
public class SceneBundleWriteOperation : IWriteOperation
Properties
Command
The specific write command containing the details about what to write to disk.
Write
Declaration
public WriteCommand Command { get; set; }
Property Value
Type | Description |
---|---|
Write |
DependencyHash
The hash that represents the unique set of input dependencies for caching this write command.
Declaration
public Hash128 DependencyHash { get; set; }
Property Value
Type | Description |
---|---|
Hash128 |
Info
Information needed for generating the Asset Bundle object to be included in the serialized file.
Scene
Declaration
public SceneBundleInfo Info { get; set; }
Property Value
Type | Description |
---|---|
Scene |
PreloadInfo
Information needed for scene preloadeding.
Preload
Declaration
public PreloadInfo PreloadInfo { get; set; }
Property Value
Type | Description |
---|---|
Preload |
ProcessedScene
Processed scene path returned by the ProcessScene API.
Prepare
Declaration
[Obsolete("ProcessedScene has been deprecated.")]
public string ProcessedScene { get; set; }
Property Value
Type | Description |
---|---|
string |
ReferenceMap
The specific reference data for objects in the write command.
Build
Declaration
public BuildReferenceMap ReferenceMap { get; set; }
Property Value
Type | Description |
---|---|
Build |
Scene
Source scene asset path
Declaration
public string Scene { get; set; }
Property Value
Type | Description |
---|---|
string |
UsageSet
The specific usage data for objects in the write command.
Build
Declaration
public BuildUsageTagSet UsageSet { get; set; }
Property Value
Type | Description |
---|---|
Build |
Methods
GetHash128()
Optimized hash function for use with the Build Cache system.
Declaration
public Hash128 GetHash128()
Returns
Type | Description |
---|---|
Hash128 | Unique hash for the contents of this write operation. |
GetHash128(IBuildLogger)
Optimized hash function for use with the Build Cache system.
Declaration
public Hash128 GetHash128(IBuildLogger log)
Parameters
Type | Name | Description |
---|---|---|
IBuild |
log | The build log. |
Returns
Type | Description |
---|---|
Hash128 | Unique hash for the contents of this write operation. |
Write(string, BuildSettings, BuildUsageTagGlobal)
Write function that wraps the low level WriteSerializeFile APIs that takes the common minimum set of parameters.
Declaration
public WriteResult Write(string outputFolder, BuildSettings settings, BuildUsageTagGlobal globalUsage)
Parameters
Type | Name | Description |
---|---|---|
string | outputFolder | The location to write data to disk. |
Build |
settings | The build settings to use for writing data. |
Build |
globalUsage | The global usage to use for writing data. |
Returns
Type | Description |
---|---|
Write |
The write results struct containing details about what was written to disk |