大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0088 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...ty clone():* 克隆。 GradientAngularVelocity cloneTo(destObject:*):void 克隆。 GradientAngularVelocity createByConstant(constant:Number):GradientAngularVelocity[static] 通过固定角速度创建一个 GradientAngularVelocity 实例。 GradientAngularVelocity createByConstantSepara...
来源: laya_api 发布时间: 20170929
...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
..."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
...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
...酱 赞同来自: __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
...: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
...} //程序入口 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
...在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
...ticleSettings 类实例。 ParticleSetting checkSetting(setting:Object):void[static] ParticleSettingProperty DetailageAddScalepropertypublic var ageAddScale:Number = 0如果大于0,某些粒子的持续时间会小于其他粒子,并具有随机性(单位:无)blendStateproperty public var bl...
来源: Laya2.0_api 发布时间: 20190513
...回数据给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