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

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

701. ColorFilter 清除时会出错 [ 79%]

...leFilter:ColorFilter = new ColorFilter(grayscaleMat);             this.filters = [grayscaleFilter];   2、按键松开时,清除这个颜色变化,      this.filters = null;   按键的位置莫名其妙的移到屏幕正中间?这个怎么解决?谢谢! 2017-05-26 添加评...

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

702. 物理碰撞器(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 79%]

...aya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); //设置材质 plane.meshRenderer.material = planeMat; //平面添加物理碰撞...

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

703. FontClip问题 [ 79%]

...置为竖型的图集。 现在问题来了。根据代码 for (var i=0,sz=this._valueArr.length;i < sz;i++){   var index=this._indexMap[this._valueArr.charAt(i)];   if (!this.sources[index])continue ;   texture=this.sources[index];   if (isHorizontal)this.graphics.drawTexture(texture,dX+...

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

704. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 79%]

...3D.load("res/threeDimen/scene/ParticleScene/Example_01.ls", Handler.create(this, function(scene:Scene3D):void { _scene = Laya.stage.addChildAt(scene, 0) as Scene3D; var camera:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.translate(new Vector3(0, 1, 0)); camera.addComp...

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

705. 怎样获取父类? [ 79%]

...添加一个页面TipsView为子类 ... ... var tipView = new TipsView(); this.addChild(tipView);   function enterNextScene() { } ... ...      //这个是TipsView.js类,我想在这个类里调用上面那个父类里enterNextScene的方法,如何获取到上面那个父类呢? var TipsVie...

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

706. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 79%]

...OWALL; Laya.stage.bgColor = "#232628"; //预加载资源 Laya.loader.load([this.buttonSkin, this.clipSkin, this.bgSkin], Laya.Handler.create(this, this.onSkinLoaded)); } private onSkinLoaded(): void { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.createController(); } pri...

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

707. popupEffect 有谁能告诉我dialog的这个东西要怎么用啊? [ 79%]

...还要加什么东西,能不能有个demo啊,找了半天没有找到 this.popupEffect = new Handler(this, () => { this.scale(0.2, 0.2); Laya.Tween.to(this, { scaleX: 1, scaleY: 1 }, 2000); }); 2018-06-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

708. 网络和格式-POST [ 79%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.connect(); this.showLogger(); } connect() { const HttpRequest = Laya.HttpRequest, Event = Laya.Event; hr = new HttpRequest(); hr.once(Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Event.COMPLETE, this, this....

来源: Laya2.0_示例 发布时间: 20251209

709. 射线检测报错,outHitInfo.sprite3D=null; [ 79%]

... Laya.Camera; private scene: Laya.Scene;  public _load(owner : any):void{ this.scene = owner; this.camera = this.scene.scene.getChildByName("Main Camera") as Laya.Camera; console.log("当前摄像机的名字是:" + this.camera.name); }  public _start(state:Laya.RenderState):void{ this.ray = new...

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

710. 图集打包后使用Texture不显示,项目整个已经传上来了 [ 79%]

...andler = Laya.Handler; class GameMain{ constructor() { Laya.init(600,400); this.hahaha(); } private hahaha(): void { var assets: Array<any> = []; assets.push({ url: "res/start.json", type: Loader.ATLAS}); Laya.loader.load(assets, Handler.create(this, this.onComplete)); } private onComplete(): ...

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