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

大约有 569 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0047 秒)

291. 如何往TiledMap格子内追加精灵 [ 55%]

...no) * 99.5, 73); flower.mouseEnabled=true; flower.alpha=1; flower.on(Event.CLICK,this,function() { flower.scaleX=1.1; flower.scaleY=1.1; Laya.timer.once(100, this,function() { flower.scaleX=1; flower.scaleY=1; alert("My Name is Bear" + no); return; }) }); mallLayer._childs[0].addChild(flower); } 201...

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

292. 摄像机捕捉目标(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 55%]

...or3(0, 1, 0); ``` ```typescript //点击事件 changeActionButton.on(Event.CLICK, this, function():void{ index++; if (index % 3 === 1 ){ //摄像机捕捉模型目标 camera.transform.lookAt(box.transform.position, _up); } else if (index % 3 === 2){ //摄像机捕捉模型目标 camera.transform.loo...

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

293. 用JS原生态window.location.href跳转 [ 55%]

...00,100,"#FFFF00"); Laya.stage.addChild(sp); sp.size(1000,100); sp.on(Event.CLICK,this,onClick); } private function onClick():void { Browser.window.location.href="https://www.baidu.com"; } 2016-12-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...

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

294. 摄像机捕捉目标(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 55%]

...0); ``` ```typescript //点击事件 this.changeActionButton.on(Laya.Event.CLICK, this, function(){ this.index++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.box.transform.position, this._up); } else if (this.index % 3 === 2){ //摄像机捕捉模型...

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

295. 摄像机捕捉目标(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 55%]

...0); ``` ```typescript //点击事件 this.changeActionButton.on(Laya.Event.CLICK, this, function(){ this.index++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.box.transform.position, this._up); } else if (this.index % 3 === 2){ //摄像机捕捉模型...

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

296. addchild后,怎么去引用? [ 55%]

....ani"); lose1.x=150; lose1.y=400; lose1.size(100,300); lose1.on(Laya.Event.CLICK,this.listP,this.play1); lose1.name="lose1"; this.listP.addChild(lose1); play1():void { console.log("111"); this.lose1.play(); //this._childs[5].play(); } 2017-10-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

297. tree异步选中问题 [ 55%]

...下,== Chuan • 2018-03-24 14:57 已解决: if (e.type == Laya.Event.CLICK) { if (e.target.name == "arrow") { //Tree的开/关,当打开一个时,另一个关闭 var item:Cell = e.target.parent as Cell; if (item.dataSource.isOpen == true) { if (this.selectedIndex == -1) { this.sel...

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

298. TextInput 监听事件 Laya.Event.INPUT 事件在IOS 环境下没动作 [ 55%]

...微博 QZONE 微信 之肖 赞同来自: 试试this.vertify1.on(Laya.Event.CLICK,this,this._onInputVerify,[1) 2022-02-22 0 1 分享 微博 QZONE 微信 凱文 赞同来自: 幫推個幫推個 2022-03-01 0 0 分享 微博 QZONE 微信 Laya_Yan 赞同来自: 提供示例看一下 2022-03-01 0 0 分享...

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

299. 关于event中只读属性touches,问题,求解 [ 55%]

...00; txt.height = 100; txt.x = 200; txt.y = 100; txt.fontSize = 50; txt.on("click", this, onFunc); Laya.stage.addChild(txt); } private function onFunc(e:Event):void { var arr:Array = e.touches; console.log("e.touchId="+e.touchId); console.log("arr[0]"+arr[0]); } } }  输出为:       不明白t...

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

300. Laya.Sprite 和 laya.display.Sprite 是一样的吗? [ 55%]

...有什么办法? Laya.Sprite loadImage 参数问题 laya.sprite 不接受click事件 问题状态 最新活动: 2018-01-16 11:04 浏览: 1340 关注: 2 人 Monica • 2018-01-16 11:20 是的

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