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

大约有 4,034 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0086 秒)

541. emoji表情文字乱码 [ 92%]

...r CharSegment=(function(){     function CharSegment(){         this._sourceStr=null;     }      __class(CharSegment,'laya.webgl.text.CharSegment');     var __proto=CharSegment.prototype;     Laya.imps(__proto,{"laya.webgl.text.ICharSegment":true})     __proto.textToS...

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

542. 引擎遮罩报错 [ 92%]

...存 用了cacheAs 不起作用 zhengjiajia • 2017-09-13 20:05 @Monica: this.itemSpr.cacheAs = 'normal'; this.itemSpr.cacheAsBitmap = false; 为何这样设置 在报错的时候 发现这两个属性完全不正确呢 zhengjiajia • 2017-09-13 20:09 @Monica:this.itemSpr = new Laya.Sprite; this.it...

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

543. 用Loader加载完atlas,然后使用animation播放问题 [ 92%]

用Loader加载完atlas,然后使用animation播放问题 this._load = new Laya.Loader() this._load.on(Laya.Event.ERROR, this, this.onError); this._load.on(Laya.Event.COMPLETE, this, this.loadComplete); this._load.load(this._data.url, Laya.Loader.ATLAS, true); 加载完成后 this._ani = new Animat...

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

544. 微信小游戏中加载unity导出的场景报错the .lh file root type must be Scene [ 92%]

...ne: the .lh file root type must be Scene,please use other function to load this file."); } }            var innerResouMap=data[1];     Utils3D._createNodeByJson(this,json,this,innerResouMap);     this.event("hierarchyloaded",[this]);     this.__loaded=true;   }   打了一...

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

545. 自定义渲染后,customRender里设置uniform值在ui节点下不生效 [ 92%]

...ext:Laya.RenderContext,x:number,y:number):void{             if(this.shader._program)             {                 let u_lightTime = gl.getUniformLocation(this.shader._program, "u_lightTime")                 gl.uniform1f(u_lightTime, this.timer...

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

546. 动画-旧版骨骼动画 [ 92%]

...kinModel/Zombie/old/Zombie.lh")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, function () { zombie.transform.rotation = new Laya.Quaternion(-0.7071068, 0, 0, -0.7071068); zombie.transform.position = new Laya.Vector3(0.3, 0, 0); addSkinComponent(zombie); loadUI(); }); var skinAniUrl = [ "../../res...

来源: Laya_示例 发布时间: 20250224

547. 判断玩家在地面还在空中 [ 92%]

...物体代码   onGround():any{         let bc:Laya.BoxColliderShape = this.rigidbody.colliderShape as Laya.BoxColliderShape         let y:number = this.transform.position.y-bc.sizeY/2 - 0.05         let vec3:Laya.Vector3 = new Laya.Vector3(this.transform.position.x,y,this.transform.posi...

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

548. 材质的功能介绍(TypeScript-3D基础(TS)-LayaAir3D之Material材质) [ 92%]

...mo/Conventional/scene.ls")) as Laya.Scene3D; //从场景获取球型精灵 this.sphere = scene.getChildByName("Sphere") as Laya.MeshSprite3D; //获取球型精灵自带的BlinnPhong材质 this.billinMaterial = this.sphere.meshRenderer.material; ``` > 拿到材质之后,我们可以修改材质或...

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

549. laya拖拽在部分机型(一部XR)StageX不对 [ 92%]

...部XR)StageX不对 //注册事件  Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseEvent);  Laya.stage.on(Laya.Event.MOUSE_UP, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_OUT, this, this.onMouseEvent); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseEvent); //鼠标yi'...

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

550. 这样的panel请问如何实现比较好? [ 92%]

.../点击最先出来的按钮,会显示下一层界面,同时隐藏自己 this.btnFirst.on(Laya.Event.CLICK, this, this.change, [0]); //点击上面一层的按钮,会隐藏该层,同时显示上一层 this.btnChange.on(Laya.Event.CLICK, this, this.change, [1]); //初始时默认上面一层不...

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