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

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

541. 在微信分享成功的回调函数里,Laya播放音效失败。 [ 60%]

...身上纹,掌声送给社会人", imageUrl: "images/boss.png", success: function () { gameex.bar.shareCount += 1; gameex.bar.clearCountDown(); gameex.snakeSelf.updateState(EN_SNAKE_STATE_NORMAL); gameex.snakeSelf.setLength(3) gameex.buffManager.buildBuff(EN_SNAKE_BUFF_ID_1, gameex.snakeSelf, [4000...

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

542. ShaderPass介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 60%]

...omShader/outline02.ps"); ``` > 初始化Shader ```typescript public static function initShader() { //所有的attributeMap属性 var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0, 'a_Texcoord0': Laya.VertexMesh.MESH_TEXTURECOORDINATE0 }; //...

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

543. 销毁资源并释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 59%]

...aMonkey2/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Handler.create(this, function(mesh:Mesh):void { ........ //上面省略,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function ():void { //销毁了使用了该网格的精灵 layaMonkey.destroy(); //对...

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

544. Unlit材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 59%]

... Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2; ``` ![](img/1.png)(图1)

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

545. 高级应用-Laya3D与网页混合 [ 59%]

...t; import common.CameraMoveScript; public class Laya3DCombineHtml { public function Laya3DCombineHtml() { __JS__("var div = document.createElement('div')"); __JS__("div.innerHTML = '此内容来源于HTML网页, 可直接在html代码中书写 - h1标签'"); __JS__("document.body.appendChild(div)");...

来源: Laya_示例 发布时间: 20260303

546. 播放动画(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 59%]

...ani.play("attack"); //等待动画播放完成 Laya.timer.frameLoop(1,this,function(){ //如果当前播放state已经播放完了一次 if(ani.getCurrentAnimatorPlayState().normalizedTime >= 1){ //回到站立状态 ani.play("stand"); } }); } ``` ![](img/6.gif)(图6)

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

547. 启用版本管理后,Laya.loader.load加载在微信web开发者工具触发不了回调 [ 59%]

...ype: Laya.Loader.ATLAS}, ] Laya.loader.load(resArray, Handler.create(null, function(){ console.log("回调")}));   这样用Laya.loader.load加载在微信web开发者工具触发不了回调,资源的url都是有资源的, Laya.URL.basePath的路径也是对的   laya sdk 是1.7.17,微信...

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

548. 分享:List相关(Item增删功能) [ 59%]

...istP:ListPageUI;//UI面板 private var arr:Array;//list数据数组 public function LayaUISample() { //初始化引擎 Laya.init(600, 800); Laya.stage.bgColor = "#ffcccc"; //加载界面需要的资源文件 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, on...

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

549. UI-RefreshList [ 59%]

...aya.loader.load("res/ui/refreshList/ani/refresh.png", Handler.create(this, function(){ this.initView(); })); } initView(){ // 加载并添加场景中需要使用的资源 this.baseBox = new Box(); this.baseBox.width = 443; this.baseBox.height = 622; this.baseBox.pos(30, 28); this.baseBox.bgColor = ...

来源: Laya2.0_示例 发布时间: 20260303

550. Effect材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 59%]

... Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置纹理 material.texture = texture; })); earth.meshRenderer.material = material; ``` ![](img/1.gif)(图12)

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