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

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

421. Laya在OPEN事件触发连接成功后无法抛出event事件 [ 60%]

Laya在OPEN事件触发连接成功后无法抛出event事件 public static const CONNECT:String = "connect"; 这是我一个自定义的CONNECT事件,我在连接成功后,在一个EventDispatcher类这样抛出:this.event(CONNECT);  然后报错说this._$1_event不是一个方法 这是什...

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

422. Laya ts版,使用jasmine进行单元测试 [ 60%]

...内容为module Library{ export class ToolService{ constructor(){ } public static sum(a:number, b:number):number { return a + b; } } }   一个是 src/Library/UserService.ts, 内容为module Library{ export class UserService{ constructor(){ } public multiple(a:number, b:number):number { return a * ...

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

423. 对接上架字节跳动小游戏技术指南(TypeScript-小游戏适配文档-字节跳动小游戏) [ 59%]

...default class GameRecorderMgr { /**录屏实例**/ private _recorder: any; static _instance: GameRecorderMgr; /**视频地址**/ private _videoPath: String = ""; constructor() { GameRecorderMgr.instance = this; //判断是否已初始化录屏对象 if (!this._recorder) { //判断是否为字节小...

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

424. Layabox web 复制一段文字到剪贴板 [ 59%]

...ram isAlertMsgInfo 需要提示的具体内容      *  */     public static copy(str: string ,isAlertMsgId?:number ,isAlertMsgInfo?:string): boolean{         let re: boolean;         try {             let input = document.createElement("input");             input.value = st...

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

425. 富文本过程中我遇到的问题以及解决方法(超链接换行以及无法接收超链接鼠标事件以及br或者 标签会崩溃报错的问题) [ 59%]

... Laya.Pool.recover("HTMLHitRect", this.reset());         }         static create() {             return Laya.Pool.getItemByClass("HTMLHitRect", HTMLHitRect);         }     } 第二步 class HTMLDivElement 构造中监听一下             this.on(Laya.Event.MOUSE_OVER, thi...

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

426. laya.filters.ColorFilter_API3.0 [ 59%]

...:61 设置滤镜色 Parameters color: string 颜色值 Returns ColorFilter Static _filter _filter(this: RenderSprite, sprite: Sprite, context: Context, x: number, y: number): void Inherited from BlurFilter._filter Defined in laya/filters/Filter.ts:38 Parameters this: RenderSprite sprite: Sprite cont...

来源: Laya3.0_api 发布时间: 20231115

427. laya.d3.core.MeshRenderer_API3.0 [ 59%]

...因,1表示lod淘汰 Parameters flag: number pass: boolean Returns void Static changeVertexDefine changeVertexDefine(oldMesh: Mesh, mesh: Mesh, defineDatas: ShaderData): void Inherited from PixelLineRenderer.changeVertexDefine Defined in laya/d3/core/render/BaseRender.ts:103 Parameters oldMesh: Me...

来源: Laya3.0_api 发布时间: 20231115

428. ts加密md5码封装 [ 59%]

...str) //len:32 //e10adc3949ba59abbe56e057f20f883emd5.ts class Md5 { private static _inst:Md5; public static get Instance():Md5 { return this._inst ||(this._inst = new Md5()); } public get_md5(str:string):string { return this.md5(str); } split(target: string | any[], step: number, markString: boolean ...

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

429. 1.0 骨骼drawcall优化猥琐方法 [ 59%]

...法只传对submit设置的值          */         public static function createSubmit(context:WebGLContext2D, ib:IndexBuffer2D, vb:VertexBuffer2D, pos:int, sv:Value2D):Submit {             var o:Submit = _cache._length ? _cache[--_cache._length] : new Submit();     ...

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

430. laya.d3.core.render.command.BlitScreenQuadCMD_API3.0 [ 59%]

...ers shader: Shader3D subShader: number shaderData: ShaderData Returns void Static create create(source: BaseTexture, dest: RenderTexture, offsetScale?: Vector4, shader?: Shader3D, shaderData?: ShaderData, subShader?: number, screenType?: number, commandbuffer?: CommandBuffer): BlitScreenQuadCMD Defi...

来源: Laya3.0_api 发布时间: 20231115