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

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

231. 粒子动画透明度问题 [ 64%]

...ticleShader extends laya.webgl.shader.Shader var ParticleShader=(function(_super){     function ParticleShader(){         ParticleShader.__super.call(this,ParticleShader.vs,ParticleShader.ps,"ParticleShader");     }      __class(ParticleShader,'laya.particle.shader.ParticleShade...

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

232. 动画节点 · LayaAir3.4 · 引擎文档 · LAYABOX [ 64%]

...tion }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.ani.source = "resources/role.atlas"; //接收动画数据源为图集 this.ani.autoPlay =...

来源: Laya3.0_文档 发布时间: 20251010

233. UI弹窗 · LayaAir3.0文档 · LAYABOX [ 64%]

...r = 5; private assets: any[]; private dialog: Laya.Dialog; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.assets = ["resources/res/ui/dialog (1).png", "resources/res/ui/close.png"]; Laya.l...

来源: Laya3.0_文档 发布时间: 20230303

234. loadLib("libs/laya.device.js"); native上会随机宕 [ 64%]

...detroyChildren===void 0)&& (detroyChildren=true);         _super.prototype.destroy.call(this,detroyChildren);         // native会崩溃         // this.videoElement.removeEventListener("abort",Video.onAbort);         // this.videoElement.removeEventListener("...

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

235. tiledmap 可以在图块层的指定格子上添加Sprite吗 [ 64%]

...信 nazgul 赞同来自: constructor(mapname:string, x:number, y:number){ super(); //显示登陆界面 this.tMap = new Laya.TiledMap() this.tMap.antiCrack = true //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Conf.App_Width, Conf.App_Height); //创建T...

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

236. [LayaAirIDE3]【插件开发】配置方式可以生成非常复杂的界面的部分疑惑 [ 64%]

...de(); }, this); // 获取配置创建的组件 todo } protected onHide() { super.onHide(); this.contentPane.offAllCaller(this); } private startGen(): void { // todo } } class SplitAtlasSetting { @IEditor.onLoad static start() { Editor.typeRegistry.addTypes([ { name: "SplitAtlasSetting", catalogBarSt...

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

237. 关于要自定shader的同学 [ 64%]

...ds Laya.Value2D {class ShaderValue extends Laya.Value2D { constructor () { super(0, 0) var _vlen = 8 * Laya.CONST3D2D.BYTES_PE this.position = [2, Laya.WebGLContext.FLOAT, false, _vlen, 0] this.texcoord = [2, Laya.WebGLContext.FLOAT, false, _vlen, 2 * Laya.CONST3D2D.BYTES_PE] this.color = [4, Laya.W...

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

238. bug:laya.Scene.destroy [ 63%]

... (destroyChild===void 0)&& (destroyChild=true); this._idMap=null; _super.prototype.destroy.call(this,destroyChild); var list=laya.display.Scene.unDestroyedScenes; for (var i=0,n=list.length;i < n;i++){ if (list[i]===this){ list.splice(i,1); return; } } }这里改动了同一个数组,...

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

239. 2.0版本可用的CameraMoveScript.ts [ 63%]

... protected scene: Laya.Scene3D;      constructor() {         super();      }      /**      * @private      */     protected _updateRotation(): void {         if (Math.abs(this.yawPitchRoll.y) < 1.50) {             Laya.Quaternion.createFromY...

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

240. Cannot read property 'rayCast' of undefined [ 63%]

...fined export default class indexscene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config3D = new Laya.Config3D(); config3D.is...

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