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

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

2091. 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

2092. 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

2093. 位图字体的制作与使用(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

2094. 3D场景环境设置 · LayaAir3.3 · 引擎文档 · 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

2095. 一篇上手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

2096. 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

2097. 请问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

2098. 物理引擎显示旋转问题 [ 39%]

...{         var gameWorld = new Sprite();         Laya.stage.addChild(gameWorld);         // 初始化物理引擎         engine = Matter.Engine.create({             enableSleeping: true         });         Matter.Engine.run(engine);    ...

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

2099. 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

2100. laya.ui.Panel [ 39%]

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

来源: Laya2.0_api 发布时间: 20190513