docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CalculateCustomDependencyData

    Build Task that calculates teh included objects and references objects for custom assets not tracked by the AssetDatabase. IBuildTask

    Inheritance
    object
    CalculateCustomDependencyData
    Implements
    IBuildTask
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    Implements

    IBuildTask
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)