• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 6 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0025 秒)

1. 显示与切换图片(ActionScript-LayaAir基础篇(AS3)-位图) [ 100%]

... } private function switchImg(e:*=null):void { //清空图片 img.graphics.clear(); //获得要切换的图片资源路径 var imgUrl:String = (flag = !flag)? monkey1:monkey2; //加载显示图片,坐标位于100,50 img.loadImage(imgUrl); } } } ``` 运行代码效果如动图2-2所示: ![动图2...

来源: Laya2.0_文档 发布时间: 20210715

2. 显示与切换图片(JavaScript-LayaAir基础篇(JS)-位图) [ 98%]

...reUrl = (flag = !flag) ? texture1 : texture2; // 更换纹理 ape.graphics.clear(); ape.loadImage(textureUrl); var texture = Laya.loader.getRes(textureUrl); } })(); ``` 运行代码效果如动图2-2所示: ![动图2-2](img/2-2.gif) (动图2-2) ## 2 、用drawTexture方法显示与切换图片 ###...

来源: Laya2.0_文档 发布时间: 20210715

3. 显示与切换图片(TypeScript-LayaAir基础篇(TS)-位图) [ 95%]

...s.flag) ? this.texture1 : this.texture2; // 更换纹理 this.ape.graphics.clear(); var texture: Texture = Laya.loader.getRes(textureUrl); this.ape.loadImage(textureUrl); // 设置交互区域 this.ape.size(texture.width, texture.height); } } } new laya.Sprite_SwitchTexture(); ``` 运行代码效果...

来源: Laya2.0_文档 发布时间: 20210715

4. 从Unity中编辑并导出摄像机(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 76%]

...置,**Rotation**选择和**Scale**缩放。 #### 摄像机属性 ##### Clear Flags 清除标志 支持项包括Skybox天空盒、Solid Color纯色、Depth only仅深度、Don’t Clear不清除 ##### Background背景, 在没有天空盒的情况下,将选中的颜色应用到剩余屏幕。 ##...

来源: Laya2.0_文档 发布时间: 20210715

5. Sprite3D支持的Unity导出列表(TypeScript-3D基础(TS)-LayaAir3D之Unity插件使用) [ 76%]

... - Component - Camera ![Camera](./img/components/InspectorCamera35.png) 1. Clear Flags - Skybox - Solid Color - Depth only - Don't Clear 2. Background 3. Projection - perspective - Field of View - Orthographic - size 4. Clipping Planes - Near - Far 5. Viewport Rect - X - Y - W - H 6. Allow HDR - Lig...

来源: Laya2.0_文档 发布时间: 20200822

6. Unity插件使用说明(TypeScript-3D基础(TS)-LayaAir3D之3D场景可视化编辑) [ 17%]

...------- | ------------------------------------------------------------ | | Clear Flags(清除标志) | 支持 (包括:Skybox天空盒(Background背景色)、Solid Color纯色(Background背景色)、Depth only仅深度、Don’t Clear不清除) | | Projection(投射方式) | 支...

来源: Laya2.0_文档 发布时间: 20210714