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

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

501. laya.ui.Radio_API3.0 [ 56%]

...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea iconOffset is3D label labelAlign labelBold labelColors labelFont labelPadding labelSize labelStroke labelStrokeCol...

来源: Laya3.0_api 发布时间: 20231115

502. laya.html.dom.HTMLIframeElement_API3.0 [ 56%]

...xtWidth customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea href innerHTML is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrol...

来源: Laya3.0_api 发布时间: 20231102

503. 如何对3D精灵进行鼠标检测(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 56%]

...g/1.png)(图1) ```typescript { //在舞台上添加鼠标事件监听 Laya.stage.on(Laya.Event.MOUSE_DOWN,this, this.onMouseDown); } //点击触发事件 onMouseDown() { //记录点击到舞台上的点 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouse...

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

504. 如何对3D精灵进行鼠标检测(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 56%]

...g/1.png)(图1) ```typescript { //在舞台上添加鼠标事件监听 Laya.stage.on(Laya.Event.MOUSE_DOWN,this, this.onMouseDown); } //点击触发事件 onMouseDown() { //记录点击到舞台上的点 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouse...

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

505. 如何对3D精灵进行鼠标检测(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 55%]

...g/1.png)(图1) ```typescript { //在舞台上添加鼠标事件监听 Laya.stage.on(Event.MOUSE_DOWN,this, onMouseDown); } //点击触发事件 private function onMouseDown():void { //记录点击到舞台上的点 point.x = MouseManager.instance.mouseX; point.y = MouseManager.instance.mouseY; //产...

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

506. laya.map.TileAniSprite_API3.0 [ 55%]

...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrollRect skewX ske...

来源: Laya3.0_api 发布时间: 20231115

507. 分享:使用 graphics.clipRect 的注意事项 [ 55%]

....drawRect(0,0,400,400,"#ffffff",null,1);   sp.graphics.restore();   Laya.stage.addChild(sp); 2、使用graphics.clipRect之后裁剪区域没有显示、生效?   出现这个问题的话就是顺序错了。必须要先clipRect之后再drawRect。不然就不会显示生效! 2016-08-18 添...

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

508. getRes加载场景报错 [ 55%]

...= Laya.loader.getRes("LayaScene_04_laya/04_laya.ls") as Laya.Scene3D; Laya.stage.addChild(that.scene); // 报错如下:   //2.实例化场景 var scene:Laya.Scene3D = Laya.loader.getRes("LayaScene_04_laya/04_laya.ls") as Laya.Scene3D; //同预加载时的url// 报错如下:     附件 : --> H...

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

509. laya.html.dom.HTMLDivElement_API3.0 [ 55%]

...xtWidth customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea innerHTML is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrollRect...

来源: Laya3.0_api 发布时间: 20231102

510. 为什么hitTestPoint始终是false? [ 55%]

...ya.Image("comp/bg.png"); this.s.addChild(img); this.addChild(this.s); Laya.stage.on(Laya.Event.CLICK, this, this.hitPoint); } private hitPoint(e:Laya.Event): void { console.log(this.s.hitTestPoint(e.stageX, e.stageY)); } } 很简单的代码,不知道什么hitTestPoint始终得到的是false.我...

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