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

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

2091. ENOENT: no such file or directory, open 'D:\layaidehello eleasewxgameLayaSample.js.map [ 40%]

...aya.stage.bgColor = '#23238E'; //将文本内容添加到舞台 Laya.stage.addChild(txt); } } new GameMain(); 海货 • 2018-07-15 16:17 上边是代码 wq • 2018-08-01 14:00 那不是很麻烦,要全部注释忘。 nonfiction • 2018-09-04 11:33 1.7.19,新建示例项目,发布到微信...

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

2092. LayaAir3D 导出和使用U3D粒子特效 [ 40%]

...NE 微信 颜颜粑粑 赞同来自: var particleSprite3D:Sprite3D = scene.addChild(Sprite3D.load("...")) as Sprite3D; particleSprite3D.transform.position = new Laya.Vector3(100,0,0);   这样写 无法移动例子效果? 2018-05-09 0 6 分享 微博 QZONE 微信 绝地求生 赞同来自: unity5...

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

2093. laya.ui.Panel [ 40%]

...Panel 构造函数中设置属性width、height的值都为100。 Panel  addChild(child:Node):Node[override] 添加子节点。 Panel  addChildAt(child:Node, index:int):Node[override] 添加子节点到指定的索引位置。 Panel addChildren(... args):void 批量增加子节点 Node callLat...

来源: laya_api 发布时间: 20170929

2094. drawTexture 画出来的数据会有以前的数据 [ 40%]

...conSpr = new Sprite(); iconSpr.width = 1280; iconSpr.height = 640; iconSpr.addChild(img); btn.on(Event.CLICK,this,runGame1); } private function runGame1():void { xNum = Math.random()*7 - 3; yNum = Math.random()*7 - 3; Laya.timer.loop(20,this,onRun); Laya.timer.frameLoop(10,this,refresh); } private f...

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

2095. 位图字体的制作与使用(ActionScript-LayaAir基础篇(AS3)-文本) [ 40%]

... txt.font = this.mFontName; txt.fontSize = 50; txt.leading = 5; Laya.stage.addChild(txt); } } } ``` ### **Text 类中相关接口:** **registerBitmapFont () 方法** public static function registerBitmapFont(name:String, bitmapFont:BitmapFont):void 注册位图字体。 参数 ​ name:String — ...

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

2096. 3D场景环境设置 · LayaAir3.4 · 引擎文档 · LAYABOX [ 40%]

...('scene/Game.ls', Laya.Handler.create(null, function (res:any){ Laya.stage.addChild(res); })); //用Laya.loader的方式加载,加载后根节点是Scene2D Laya.loader.load('scene/Game.ls', Laya.Handler.create(this, this.onLoaded), Laya.Handler.create(this, this.onLoading)).then( (res)=>{ let s...

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

2097. 一篇上手LayaAir的3D物理引擎(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 40%]

... /* ……省略若干代码 */ //创建盒型MeshSprite3D let box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX, sY, sZ))) as Laya.MeshSprite3D; //创建静态碰撞器 let staticCollider:Laya.PhysicsCollider = box.addComponent(Laya.PhysicsCollider); //设置为触发器,...

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

2098. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 40%]

...CLICK,this,readnext);         //添加到舞台     Laya.stage.addChild(this.bgimg);     }     function onLoading(progress)     {         console.log("加载进度: " + Math.floor(progress*100)+"%");     }     function onError(err)     {         co...

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

2099. 请问object层中添加的sprite怎么添加点击事件 [ 40%]

...vent.CLICK,this,function() {    alert("My Name is Bear"); }); mallLayer.addChild(flower); mallLayer._showGridList.push(flower); 附件 : --> hxwlworld.zip 2018-07-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回...

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

2100. laya.media.SoundNode [ 39%]

...s Show Inherited Public Methods MethodDefined By  SoundNode()SoundNode addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node clearTimer(caller:*, method:Funct...

来源: laya_api 发布时间: 20170422