文档

Unity Engine

Unity Engine

GetAllScenePaths()

Return all the names of Scenes in the AssetBundle.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AssetBundleModule
public string[] GetAllScenePaths()

Returns

Type

Description

string[]

Remarks

The names are the project-relative path of each .unity file, unless a different name was specified at build time.
An AssetBundle can store either Scenes or Assets, never a mix of the two. If the AssetBundle contains only Assets this returns an empty string array.