Version: 2023.1
public static void DependOnAsset (Object asset);

参数

asset The Unity Object from an asset.

描述

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.