Class CalculateCustomDependencyData
Build Task that calculates teh included objects and references objects for custom assets not tracked by the AssetDatabase. IBuildTask
Implements
Inherited Members
Namespace: UnityEditor.Build.Pipeline.Tasks
Assembly: Unity.ScriptableBuildPipeline.Editor.dll
Syntax
public class CalculateCustomDependencyData : IBuildTask
Properties
Version
Version identifier for the build task. Primarily for caching.
Declaration
public int Version { get; }
Property Value
Type | Description |
---|---|
int |
Methods
CreateAssetEntryForObjectIdentifiers(ObjectIdentifier[], string, string, string, Type)
Adds mapping and bundle information for a custom asset that contains a set of unity objects.
Declaration
public void CreateAssetEntryForObjectIdentifiers(ObjectIdentifier[] includedObjects, string path, string bundleName, string address, Type mainAssetType)
Parameters
Type | Name | Description |
---|---|---|
ObjectIdentifier[] | includedObjects | Object Identifiers that belong to this custom asset |
string | path | Path on disk for this custom asset |
string | bundleName | Asset Bundle name where to add this custom asset |
string | address | Load address to used to load this asset from the Asset Bundle |
Type | mainAssetType | Type of the main object for this custom asset |
GetObjectIdentifiersAndTypesForSerializedFile(string, out ObjectIdentifier[], out Type[])
Returns the Object Identifiers and Types in a raw Unity Serialized File. The resulting arrays will be empty if a non-serialized file path was used.
Declaration
public void GetObjectIdentifiersAndTypesForSerializedFile(string path, out ObjectIdentifier[] objectIdentifiers, out Type[] types)
Parameters
Type | Name | Description |
---|---|---|
string | path | Path to the Unity Serialized File |
ObjectIdentifier[] | objectIdentifiers | Object Identifiers for all the objects in the serialized file |
Type[] | types | Types for all the objects in the serialized file |
GetObjectIdentifiersAndTypesForSerializedFile(string, out ObjectIdentifier[], out Type[], BuildUsageTagGlobal)
Returns the Object Identifiers and Types in a raw Unity Serialized File. The resulting arrays will be empty if a non-serialized file path was used.
Declaration
public void GetObjectIdentifiersAndTypesForSerializedFile(string path, out ObjectIdentifier[] objectIdentifiers, out Type[] types, BuildUsageTagGlobal additionalGlobalUsage)
Parameters
Type | Name | Description |
---|---|---|
string | path | Path to the Unity Serialized File |
ObjectIdentifier[] | objectIdentifiers | Object Identifiers for all the objects in the serialized file |
Type[] | types | Types for all the objects in the serialized file |
BuildUsageTagGlobal | additionalGlobalUsage | Additional global lighting usage information to include with this custom asset |
Run()
Run task method
Declaration
public ReturnCode Run()
Returns
Type | Description |
---|---|
ReturnCode | Return code with status information about success or failure causes. |