BuildPipelineContext.DependOnAsset

Declaration

public static void DependOnAsset(Object asset);

Parameters

asset The Unity Object from an asset.

Description

Allows you to specify that a Scene depends on contents of an asset directly provided.

Scene rebuild will be triggered if the condition is true: * if the asset or any of its dependencies changes.


Did you find this page useful? Please give it a rating: