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

大约有 581 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0059 秒)

51. 多线程worker(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 85%]

...; [workder 支持的函数](https://developer.mozilla.org/En/DOM/Worker/Functions_available_to_workers) 页面提供了一个 worker 支持的全局函数列表。开发者可以自己看下相应的方法。 ####方法概述 ##### 构造函数Worker() ​ 该构造函数创建一个 web worker,...

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

52. 场景环境反射(ActionScript-3D基础(AS3)-LayaAir3D之场景渲染配置) [ 85%]

...al.load("res/threeDimen/skyBox/DawnDusk/SkyBox.lmat", Handler.create(null, function(mat:SkyBoxMaterial):void { //获取相机的天空盒渲染体 var skyRenderer:SkyRenderer = camera.skyRenderer; //设置天空盒mesh skyRenderer.mesh = SkyBox.instance; //设置天空盒材质 skyRenderer.material ...

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

53. WebSocket发送与接收数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 85%]

...blic class Game { private var socket:Socket; private var byte:Byte; public function Game() { //初始化引擎 Laya.init(600, 400,WebGL);// this.byte = new Byte(); this.byte.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket = new Socket(); this.socket.endian = Byte.LITTLE_ENDIAN;...

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

54. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 85%]

...res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }...

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

55. Label属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 85%]

...ort laya.ui.Label; import laya.webgl.WebGL; public class UI_Label { public function UI_Label() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV = Stage.ALIGN_MIDDLE; //画布水平居中对齐 Laya.stage.alignH = Stage.ALIGN_CENTER;...

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

56. 关联shader的uniform(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 85%]

...ript /** * 获取漫反射贴图。 * @return 漫反射贴图。 */ public function get albedoTexture(){ return this._shaderValues.getTexture(MultiplePassOutlineMaterial.ALBEDOTEXTURE); } /** * 设置漫反射贴图。 * @param value 漫反射贴图。 */ public function set albedoTexture(value) { i...

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

57. 如何实现类似AS3下的BitmapData.draw去截取区域图片? [ 85%]

....utils.Handler;     public class CupPhone     {         public function CupPhone()         {             Laya.init(550,400);             Laya.loader.load("walk.png",Handler.create(this,onLoaded));         }         private function onLoaded():void   ...

来源: Laya_社区 发布时间: 20160506

58. 在Unity中导出拖尾系统(ActionScript-3D基础(AS3)-LayaAir3D之拖尾系统) [ 84%]

... Sprite3D.load('LayaScene_tst/Conventional/Sphere.lh',Handler.create(this,function(sp:Sprite3D):void{ //将加载的拖尾添加给示例盒子 box.addChild(sp); //为了体现效果,我们移动盒子和摄影机观察效果 Laya.timer.frameLoop(1,this,function():void{ //使用差速来体现移...

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

59. 物理碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 84%]

...); Texture2D.load("res/threeDimen/Physics/grass.png", Handler.create(null, function(tex:Texture2D):void { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Vector4(10, 10, 0, 0); //设置材质 plane.meshRenderer.material = planeMat; //平面添加物理碰...

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

60. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 84%]

...------ | ---------------------------------------- | | onreadystatechange | function | 一个JavaScript函数对象,当readyState属性改变时会调用它。 | | readyState | unsigned short | 请求的五种状态 | | response | varies | 响应实体的类型由 `responseType 来指定,` 可以...

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