大约有 2,311 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0069 秒)
Laya_社区(1514) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya3.0_文档(75) Laya2.0_api(74) laya_api(70)
...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
...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
... 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
...('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
... /* ……省略若干代码 */ //创建盒型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
...CLICK,this,readnext); //添加到舞台 Laya.stage.addChild(this.bgimg); } function onLoading(progress) { console.log("加载进度: " + Math.floor(progress*100)+"%"); } function onError(err) { co...
来源: Laya_社区 发布时间: 20171024
...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
...{ var gameWorld = new Sprite(); Laya.stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create({ enableSleeping: true }); Matter.Engine.run(engine); ...
来源: Laya_社区 发布时间: 20180323
...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
...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