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

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

2541. laya.d3.core.particleShuriKen.module.GradientAngularVelocity [ 48%]

...ty  clone():* 克隆。 GradientAngularVelocity  cloneTo(destObject:*):void 克隆。 GradientAngularVelocity  createByConstant(constant:Number):GradientAngularVelocity[static] 通过固定角速度创建一个 GradientAngularVelocity 实例。 GradientAngularVelocity  createByConstantSepara...

来源: laya_api 发布时间: 20170929

2542. Panel使用文档(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 48%]

...p.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //实例化Panel组件 var panel: Laya.Panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.size(100, 100); //给panel设置滚动条皮...

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

2543. untiy导出的粒子特效有播放完成的回掉吗? [ 48%]

..."fff.lh")) as Sprite3D; wjqs.once(Event.HIERARCHY_LOADED, this, function():void { var aaa:ShurikenParticleSystem = wjqs.getChildAt(0).getChildAt(0).particleSystem; aaa.on(Event.COMPLETE, this, function() { trace("COMPLETE callback!!"); }); }); 2017-05-15 0 1 分享 微博 QZONE 微信 158*****19...

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

2544. Morn下List组件如何给每一条列表添加Click事件,是需要for吗? [ 48%]

...Handler(listRender); } private function listRender(e:MouseEvent,index:int):void { // TODO Auto Generated method stub if(e.type==MouseEvent.CLICK) { if(index==2) { trace("okla") } } } } } 2015-12-24 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...

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

2545. 关于Dialog的closeHandler问题 [ 48%]

...酱 赞同来自: __proto.open=function(dialog,closeOther){ (closeOther===void 0)&& (closeOther=false); if (closeOther)this.removeChildren(); if (dialog.popupCenter)this._centerDialog(dialog); this.addChild(dialog); if (dialog.isModal || this._$P["hasZorder"])this.timer.callLater(this,this._...

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

2546. 使用blendMode=add模式时,某些手机上无法正常显示,出现黑底 [ 48%]

...:int = 0;             Laya.stage.timerLoop(1, this, function():void{index++;image.alpha = Math.sin(Math.PI*2*(index/24))})              var image:Image = new Image();             image.blendMode = "add";             image.skin = "res/atlas/test.png"; ...

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

2547. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 48%]

...} //程序入口 Laya.init(600, 400); this.onLoaded() function onLoaded(): void { //实例UI界面 var testUI: FishPonds = new FishPonds(); Laya.stage.addChild(testUI); Laya.timer.loop(1000, this, function () { testUI.rotation = 360 console.log("rotation!" + testUI.rotation); }); } 附件 : --> hitT...

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

2548. box2d 弹性异常 [ 48%]

...在FlyItem里添加 onTriggerEnter(other: any, self: any, contact: any): void { let rig: Laya.RigidBody = this.owner.getComponent(Laya.RigidBody) as Laya.RigidBody; let velocity = rig.linearVelocity; console.log(velocity) } 你把初始弹射改成一个球,你就会发现,这个球,他的水...

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

2549. laya.particle.ParticleSetting [ 48%]

...ticleSettings 类实例。 ParticleSetting  checkSetting(setting:Object):void[static] ParticleSettingProperty DetailageAddScalepropertypublic var ageAddScale:Number = 0如果大于0,某些粒子的持续时间会小于其他粒子,并具有随机性(单位:无)blendStateproperty public var bl...

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

2550. Laya的安卓二次开发主动调用js层,无法实现传回数据给js层 [ 48%]

...回数据给Laya层。 方式1:m_Handler.post( new Runnable() { public void run() { //ui thread update ui JSONObject obj = new JSONObject(); try { obj.put("value", "Hello Laya!"); } catch(JSONException e) { e.printStackTrace(); } Log.d("Laya", "======准备返回参数 :"+obj.toString()); Export...

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