大约有 163 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0066 秒)
...量。 * @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
...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
...显示这个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
...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
...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
...; //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
...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
...(); } 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
...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
...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