文档

Unity Engine

Unity Engine

DependOnPath(string)

Allows you to specify that a Scene depends on contents of a source asset at the provided path.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static void DependOnPath(string path)

Parameters

path

The path of the dependency.

Remarks

Scene rebuild will be triggered if either of the conditions are true:
  • The asset at the path changes
  • The asset at the path moves.