大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0104 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...ne_cu_demo/Conventional/Cu.lh", Handler.create(null, function(sp:Sprite3D):void { cu = scene.addChild(sp) as Sprite3D; cu.transform.rotate(new Vector3(0, -90, 0), true, false); _rb = cu.getComponent(Rigidbody3D) as Rigidbody3D; })); //施加作用力或冲量 btn_a.on(Event.CLICK,this, function(...
来源: Laya_社区 发布时间: 20190417
...了!比如代码 方法一: function renderHandler(item:box,index:int):void { var button:Button = item.getChildByName("buton") as Button;(名字是你在ide里自己设定的) button.on(事件注册) } 方法二: list组件.itemRender = UI页面 function renderHandler(item:UI页面,index:...
来源: Laya_社区 发布时间: 20171128
...radientColor clone():* 克隆。 GradientColor cloneTo(destObject:*):void 克隆。 GradientColor createByConstant(constant:Vector4):GradientColor[static] 通过固定颜色创建一个 GradientColor 实例。 GradientColor createByGradient(gradient:GradientDataColor):GradientColor[stati...
来源: laya_api 发布时间: 20170929
...","","get","arraybuffer"); } private function completeHandler(data:Object):void { //加载完成返回的data是arraybuffer; //.......这里处理我们加密的图片数据,假设我们的图片加密数据是在图片的前面写入了四个字节的数据 //.......解密逻辑开始处理数...
来源: Laya_社区 发布时间: 20171011
...,Ease.backIn,Handler.create(this,onTween1)); } private function onTween1():void { // TODO Auto Generated method stub num ; trace(num); Tween.clearTween(onTween1); Tween.to(sp,{x:100},1000,Ease.backIn,Handler.create(this,onTween2)); } private function onTween2():void { // TODO Auto Generated method s...
来源: Laya_社区 发布时间: 20160913
...), null, Loader.JSON); } public onAssetsLoaded(settings: ParticleSetting): void { this.sp = new Particle2D(settings); this.sp.emitter.start(); this.sp.play(); Laya.stage.addChild(this.sp); this.sp.x = Laya.stage.width / 2; this.sp.y = Laya.stage.height / 2; } } } new laya.Particle_T1();package { imp...
来源: Laya_示例 发布时间: 20260303
...据后要自己写逻辑处理的。。。。。。。 private _initView():void { this._furnitureList = new List(); this._furnitureList.itemRender = FurnitureItemCell; this._furnitureList.renderHandler = Handler.create(this, this.__renderFurnitureItem, null, false); this._furnitureList.repeatX = 5; ...
来源: Laya_社区 发布时间: 20180321
...load(this.AniConfPath, this.createAnimation); } private createAnimation(): void { var ani: Animation = new Animation(); ani.loadAtlas(this.AniConfPath); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani.play(); // 播放图...
来源: Laya2.0_示例 发布时间: 20260303
...mething(); } private drawSomething(): void { this.sp = new Sprite(); Laya.stage.addChild(this.sp); //画直线 this.sp.graphics.drawLine(10, 58, 146, 58, "#ff0...
来源: Laya2.0_文档 发布时间: 20210714
...), null, Loader.JSON); } public onAssetsLoaded(settings: ParticleSetting): void { this.sp = new Particle2D(settings); this.sp.emitter.start(); this.sp.play(); Laya.stage.addChild(this.sp); this.sp.x = Laya.stage.width / 2; this.sp.y = Laya.stage.height / 2; } } } new laya.Particle_T2();package { imp...
来源: Laya_示例 发布时间: 20260303