assetdatabase.loadallassetsatpath 指定路径加载所有资源

2015-1-1 00:26| 发布者: 杨炎| 查看: 4003| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: assetdatabase.loadallassetsatpath 指定路径加载所有资源static functionloadallassetsatpath(assetpath: string) :objectdescription描述returns an array of all asset objects at assetpath.返回指定路径assetpa ...

assetdatabase.loadallassetsatpath 指定路径加载所有资源

static functionloadallassetsatpath(assetpath: string) :object[]

description描述

returns an array of all asset objects at assetpath.

返回指定路径assetpath下的所有资源对象数组

some asset files may contain multiple objects (such as a maya file which may contain multiple meshes and gameobjects). all paths are relative to the project folder. like: "assets/mytextures/hello.png"

有些资源文件可能包含许多对象。(例如一个maya文件可能包含许多个网格和游戏物体)。所有的路径都是相对于工程目录文件。 例如” assets/mytextures/hello.png”

参见:assetdatabase.loadassetatpath.

相关阅读

文章点评
相关文章