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

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

1101. 分享:SWF LABEL标签的使用! [ 61%]

...; mc.load("output/AAA.swf"); mc.on(Event.LOADED,this,onLoaded); Laya.stage.addChild(mc); } private function onLoaded():void { mc.addLabel("label01",19); mc.addLabel("label02",39); mc.addLabel("label03",59); mc.on(Event.LABEL,this,onLabel);//运行到对应的帧数,会触发对应的标签 } priva...

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

1102. 视频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...ake(): void { let video = new Laya.VideoNode; //添加到舞台 Laya.stage.addChild(video); video.pos(200,200); //设置位置 video.source = "resources/layaAir.mp4"; //设置视频源文件 video.play(); //开始播放 } } Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更...

来源: Laya3.0_文档 发布时间: 20251010

1103. 加载sk文件时,报Uncaught getUint16 error - Out of bounds [ 61%]

...ETE, this, function(){ var roleAni = roleTemp.buildArmature(1); Laya.stage.addChild(roleAni); }) roleTemp.loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init));

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

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

...andler.create(this, function(mesh) { //设置猴子 var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMaterial = n...

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

1105. Effect材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 61%]

...&group=Material&name=EffectMaterialDemo)): ```typescript var earth = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere())) as Laya.MeshSprite3D; earth.transform.position = new Laya.Vector3(0, 0, 0); //创建EffectMaterial材质 var material = new Laya.EffectMaterial(); //加载地...

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

1106. loading界面实现图片预加载后,创建Sprite执行loadImage出错 [ 61%]

...3)         创建Sprite方式:       sp = new Sprite();       addChild(sp);       sp.loadImage("./assets/ico_back.png");   6、定位到 laya.core.js 1438行发现有这样的描述: if (!tex.loaded){       tex.once(/*laya.events.Event.LOADED*/"loaded",this,this._textureLoaded,...

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

1107. 多种碰撞器形状(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 61%]

... = Math.random() * 0.75 + 0.25; //创建盒型MeshSprite3D var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX, sY, sZ))) as Laya.MeshSprite3D; //创建刚体碰撞器 var rigidBody:Laya.Rigidbody3D = box.addComponent(Laya.Rigidbody3D); //创建盒子形状碰撞器 var bo...

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

1108. vivo小游戏 LayaIDE2.2.0使用fairygui报错 [ 61%]

...   console.log('sssss', fgui.GRoot.inst.displayObject);     Laya.stage.addChild(fgui.GRoot.inst.displayObject);       fgui.UIPackage.addPackage("res/Basics");             fgui.UIConfig.defaultFont = "Microsoft YaHei";     fgui.UIConfig.verticalScrollBar = "ui://Basic/ScrollBar_VT";...

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

1109. 怎么获取手机相册内容 [ 61%]

...oaded():void { var btn:Button = new Button("res/button-1.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对齐。达到位置一致,这里我们默认在0点位置; var file:Object = Browser.document.createElement("input"); //设置file的样式 file.style="filter:alp...

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

1110. 3D模型旋转定位问题 [ 61%]

...Sprite = Laya.Sprite3D.load("model/build/warehouse1/warehouse1.lh"); scene.addChild(modelSprite); modelSprite.transform.rotate(new Laya.Vector3(0, 90, 0), false, false);无法实现旋转效果 也不会报任何错误,打断点是确定这个modelSprite是sprite3D对象 附件上传了我的工...

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