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

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

1531. 关于mouseThough=true的问题 [ 68%]

....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

1532. HIERARCHY_LOADED函数不回调 [ 68%]

...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

1533. 小程序开放域相关 [ 68%]

...ded),null);                          function onLoaded():void {                 trace("urlconfigurlconfigurlconfigurlconfigurlconfigurlconfigurlconfigurlconfigurlconfigv");                 showRank();             } //                  ...

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

1534. Sprite3D-Sprite3D变换 [ 68%]

....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

1535. 在Unity中导出拖尾系统(ActionScript-3D基础(AS3)-LayaAir3D之拖尾系统) [ 68%]

...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

1536. 设置遮罩(ActionScript-LayaAir基础篇(AS3)-位图) [ 68%]

...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所示: ![图2](img/...

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

1537. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 68%]

...erty 'XXX' of undefined private var spe:Sprite; private function showApe():void {             spe = new Sprite();             spe.mouseEnabled = true;             spe.x = 100;             spe.y = 100;             spe.width = 512;             spe....

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

1538. 保存数据的数组在回调的时候变为undifine [ 68%]

...候面板中保存数据的数组变为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

1539. 物理碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 68%]

...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

1540. laya.d3.component.animator.AnimatorStateCondition_API3.0 [ 68%]

...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