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

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

151. 网格像素线 · LayaAir3.4 · 引擎文档 · LAYABOX [ 54%]

...量。 * @param name 名字。 */ constructor(maxCount: number = 2, name: string = null) { super(name); this._render = this.addComponent(PixelLineRenderer); this._geometryFilter = (this._render as PixelLineRenderer)._pixelLineFilter; (this._render as PixelLineRenderer).maxLineCount = maxCount; let m...

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

152. Laya3D场景加载问题 [ 53%]

...lass TestUI extends ui.test.TestSceneUI {     private resource: Array<String> = [         "gate/Conventional/Test.ls",     ];     constructor() { super(); }     onAwake(): void {         Laya.loader.create(this.resource, Laya.Handler.create(this, this.onPreLoadFinish));     }...

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

153. 和原生Dom交互 · LayaAir3.4 · 引擎文档 · LAYABOX [ 53%]

...显示这个img。我们新建个项目。代码如下所示: var data: string = "data:image/svg+xml," + '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' + '<foreignObject width="100%" height="100%">' + '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:4...

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

154. 绘制能力 · LayaAir3.4 · 引擎文档 · LAYABOX [ 53%]

...rawLine(fromX: number, fromY: number, toX: number, toY: number, lineColor: string, lineWidth: number = 1): DrawLineCmd { return this.addCmd(DrawLineCmd.create(fromX, fromY, toX, toY, lineColor, lineWidth)); } 代码示例: let sp = new Laya.Sprite(); //画直线 sp.graphics.drawLine(10, 58, 146, 5...

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

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

...27 0 0 分享 微博 QZONE 微信 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_Widt...

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

156. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 50%]

...;             //this.addChild(this.text); } public setImg(src: string): void { this.img.skin = src;             } }  /* class Main {     constructor() {         wx.onMessage(data => {             console.log(data);             if (data....

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

157. laya.d3.core.scene.Scene3D_API3.0 [ 50%]

...s:345 ide配置文件使用 _reflectionsResolution _reflectionsResolution: string = "256" Defined in laya/d3/core/scene/Scene3D.ts:343 ide配置文件使用 _reflectionsSource _reflectionsSource: number = 0 Defined in laya/d3/core/scene/Scene3D.ts:341 ide配置文件使用 _scene _scene: Node Inheri...

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

158. Cannot read property 'load' of null [ 48%]

...(); } return this.s_instance; } private init() { } private skins: Array<string>; private mapImg:Laya.Image; private constructor() { } public GetMap():Laya.Image { if(this.mapImg==null) { this.mapImg=new Laya.Image(); } return this.mapImg; } public LoadMapResource() { this.skins=[ "res/img/map/...

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

159. laya.d3.component.staticmesh.StaticBatchMeshRender_API3.0 [ 37%]

...nt.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inherited from Component.scriptPath Defined in laya/components/Component.ts:35 sortingFudge sortingFudge: number Inherited from PixelLineRenderer.sortingFudge Defined in laya/d3/core/render/BaseRender.ts:158 排序矫...

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

160. 微信小游戏中不能加载proto文件 [ 34%]

...reate a new message var message = AwesomeMessage.create( { openid: "AwesomeString" });  console.log(message.openid) // Verify the message if necessary (i.e. when possibly incomplete or invalid) var errMsg = AwesomeMessage.verify(message); if (errMsg) throw Error(errMsg);  // Encode a message to an...

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