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

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

651. 绘制图形的BUG [ 75%]

...ight; } } } BUG2:package ui.test { import laya.display.Sprite; import laya.events.Event; public class MyBox1 extends Sprite { private var _sprite:Sprite; public function MyBox1() { super(); _sprite=new Sprite(); //这里明明传入了尺寸,为什么graphics没有宽高信息 _sprite.graphics.dra...

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

652. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 75%]

...dule laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Rectangle = Laya.Rectangle; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Interaction_Drag { private ApePath: s...

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

653. Laya的Dialog上如果有按钮 我希望点击到按钮或者其他可以相应的控件 不会触发拖动效果 [ 75%]

...rag:boolean) { this.m_CanDrag = canDrag; if(this.m_CanDrag) { this.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); } else { this.off(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); } }  onMouseDown(e: Laya.Event) { // console.log(e.currentTarget, e.target); if(e.target == this) { this.startDrag(...

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

654. 建议:Laya.init(width, height)设定后可以动态调整 [ 75%]

...ber=500; var h:Number=400; Laya.init(w,h); 2/请为你的舞台监听Event.RESIZE事件,再Event.Resize下通过Browser.window.width和Browrowser.window.height获取屏幕宽高,将获取之后的宽高赋值给w和h即可! 2017-02-09 0 4 分享 微博 QZONE 微信 ohkei - as3、as2、h5...

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

655. 脚本的事件(TypeScript-3D基础(TS)-LayaAir3D的脚本使用) [ 75%]

...nMouseOut():void {} /** * 键盘按下时执行 */ public onKeyDown(e:Laya.Event):void {} /** * 键盘产生一个字符时执行 */ public onKeyPress(e:Laya.Event):void {} /** * 键盘抬起时执行 */ public onKeyUp(e:Laya.Event):void {} /** * 每帧更新时执行 */ public onUpdate():void {} /*...

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

656. laya.d3.component.Script3D [ 75%]

...方法为虚方法,使用时重写覆盖即可 Script3D  onKeyDown(e:Event):void 键盘按下时执行 此方法为虚方法,使用时重写覆盖即可 Script3D  onKeyPress(e:Event):void 键盘产生一个字符时执行 此方法为虚方法,使用时重写覆盖即可 Script3D  onKeyU...

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

657. 版本管理swf找同名的Json文件发现找不到 [ 75%]

...;             if (!data){                 this.event(/*laya.events.Event.ERROR*/"error","file not find");                 return;             }             // console.log("this['_atlasPath']---->",this['_atlasPath']);      ...

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

658. Native下http请求,Error事件中的error对象错误码全都是404 [ 75%]

...不应该会有这个问题才是的 比如说这个代码: this.hr.once(Event.COMPLETE, this, onHrCompleteHandler); this.hr.once(Event.ERROR , this ,onHrErrorHandler); this.hr.send($url, $data, $method, $responseType, $headers); private function onHrCompleteHandler():void { if(this.completeHandle...

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

659. UNITY3D导出模型加载错误 [ 75%]

...core.js:12339) at Loader.Laya3D._onHierarchylhLoaded (laya.d3.js:16030) at EventHandler.__proto.runWith (laya.core.js:687) at Loader.__proto.event (laya.core.js:465) at Loader.__proto.complete (laya.core.js:12141) at Loader.__proto.onLoaded (laya.core.js:12130) at EventHandler.__proto.runWith (laya....

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

660. laya.d3.core.light.PointLight_API3.0 [ 75%]

...ve addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on on...

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