大约有 15 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0027 秒)
...; //创建EffectMaterial材质 var material = new Laya.EffectMaterial(); //加载地球贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` ; //加载地球贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` ; //加载地球贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` (图1) ### 2.播放图集动画 #### 2.1 图集资源准备...
来源: Laya2.0_文档 发布时间: 20210715
...创建后缀名为“`.atlas`”的图集资源,然后赋给动画类去加载使用。 本篇将对图集动画的制作方式进行介绍,如图1所示,示例中实现了图集动画中常用的操作。 (图1) ### 2.播放图集动画 #### 2.1 图集资源准备...
来源: Laya2.0_文档 发布时间: 20210715
...创建后缀名为“`.atlas`”的图集资源,然后赋给动画类去加载使用。 本篇将对图集动画的制作方式进行介绍,如图1所示,示例中实现了图集动画中常用的操作。 (图1) ### 2.播放图集动画 #### 2.1 图集资源准备...
来源: Laya2.0_文档 发布时间: 20210715
...景即为LayaAir引擎的3D世界容器,用于呈现游戏的3D画面和加载各种3D元素,游戏中的摄像机,灯光,人物,物品等都需要放到场景中才能展示出画面,相当于一个游戏3D播放器或者3D视图。 ### Sprite3D精灵: Sprite3D是3D中基本的显...
来源: Laya2.0_文档 发布时间: 20210714
...景即为LayaAir引擎的3D世界容器,用于呈现游戏的3D画面和加载各种3D元素,游戏中的摄像机,灯光,人物,物品等都需要放到场景中才能展示出画面,相当于一个游戏3D播放器或者3D视图。 ### Sprite3D精灵: Sprite3D是3D中基本的显...
来源: Laya2.0_文档 发布时间: 20210715
...景即为LayaAir引擎的3D世界容器,用于呈现游戏的3D画面和加载各种3D元素,游戏中的摄像机,灯光,人物,物品等都需要放到场景中才能展示出画面,相当于一个游戏3D播放器或者3D视图。 ### Sprite3D精灵: Sprite3D是3D中基本的显...
来源: Laya2.0_文档 发布时间: 20210715
....Handler()`的方式创建。 例如,我们需要在游戏开始界面中加载资源,需要对加载资源的进度进行显示,下面的编码为就是错误的。 1. `Laya.loader.load(urls, Laya.Handler.create(this, onAssetLoaded), Laya.Handler.create(this, onLoading));` 在上面的代码...
来源: Laya2.0_文档 发布时间: 20210715