大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0234 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
....load(assets,Handler.create(this,onLoaded)); } private function onLoaded():void{ var img:Image = new Image("fish_6.png"); img.on(Event.CLICK,this,onClick); img.mouseThrough = true; Laya.stage.addChild(img); } 代码就这么简单,图片我传到附件里面 shiyang • 2018-03-14 15:55 ...
来源: Laya_社区 发布时间: 20180314
...anslate(500,500); this.sceneP.once(Event.HIERARCHY_LOADED, this,function():void{ console.error("改变大小"); this.sceneP.transform.localScale = new Vector3(3, 3, 3); this.sceneP.transform.localPosition = new Vector3(100, 100, 100); }); 2018-03-27 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180327
...ded),null); function onLoaded():void { trace("urlconfigurlconfigurlconfigurlconfigurlconfigurlconfigurlconfigurlconfigurlconfigv"); showRank(); } // ...
来源: Laya_社区 发布时间: 20180525
....lh", Laya.Handler.create(this, this.onComplete)); } private onComplete(): void { this.layaMonkey1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")) as Laya.Sprite3D; this.layaMonkey2 = Laya.Sprite3D.instantiate(this.layaMonkey1, this.scene, false, ...
来源: Laya_示例 发布时间: 20260303
...cene_tst/Conventional/Sphere.lh',Handler.create(this,function(sp:Sprite3D):void{ //将加载的拖尾添加给示例盒子 box.addChild(sp); //为了体现效果,我们移动盒子和摄影机观察效果 Laya.timer.frameLoop(1,this,function():void{ //使用差速来体现移动 box.transform.tran...
来源: Laya2.0_文档 发布时间: 20210715
...ad(Res,Handler.create(this,graphicsImg)); } private function graphicsImg():void { img = new Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(Res),150,50); //添加到舞台 Laya.stage.addChild(img); } } } ``` 编译运行效果如图2所示: :void { spe = new Sprite(); spe.mouseEnabled = true; spe.x = 100; spe.y = 100; spe.width = 512; spe....
来源: Laya_社区 发布时间: 20170407
...候面板中保存数据的数组变为undifine public function update():void { Utils.removeAll(panelHeroInfo); var heros:Array = GameMain.mainModel.heros.Heros; //获取 MainModel里的武将信息 var leng:int = heros.length; var item:HeroResolveItem; var heroInfo:SHeroInfo; for (var i:int = 0; i ...
来源: Laya_社区 发布时间: 20170321
...hreeDimen/Physics/grass.png", Handler.create(null, function(tex:Texture2D):void { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Vector4(10, 10, 0, 0); //设置材质 plane.meshRenderer.material = planeMat; //平面添加物理碰撞体组件 var planeSt...
来源: Laya2.0_文档 发布时间: 20210714
...6 唯一ID Returns number name get name(): string set name(value: string): void Defined in laya/d3/component/Animator/AnimatorStateCondition.ts:73 名称 Returns string Defined in laya/d3/component/Animator/AnimatorStateCondition.ts:77 名称 Parameters value: string Returns void type get type(): An...
来源: Laya3.0_api 发布时间: 20231102