大约有 1,446 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0053 秒)
Laya3.0_api(470) Laya_社区(444) Laya_示例(152) Laya2.0_示例(119) Laya2.0_api(71) Laya2.0_文档(71) Laya3.0_文档(61) laya_api(58)
...新建个项目。代码如下所示: ```typescript class LayaUISample { constructor() { //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor = "#ffcccc"; var data: string = "data:image/svg+xml," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp: Laya.Sprite = new Laya.Sprite(...
来源: Laya2.0_文档 发布时间: 20210715
...语言、LayaAirIDE让项目开发更高效。class Text_InputSingleline { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV ...
来源: Laya2.0_示例 发布时间: 20250220
...var video = new Laya.Video(); 这行代码报错 提示说Video中的Constructor不存在。 原文:Laya.Video is not a constructor 2018-04-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 PYS_Goon 相关问题 发起问题...
来源: Laya_社区 发布时间: 20170515
...el":"label"},"compId":3}],"loadList":["comp/button.png"],"loadList3D":[]}; constructor(){ super()} createChildren():void { super.createChildren(); this.createView(GameSceneuiUI.uiView); } } REG("ui.GameSceneuiUI",GameSceneuiUI); export class GameViewUI extends Laya.View { public static uiView:any ={...
来源: Laya_社区 发布时间: 20200228
...开发语言、LayaAirIDE让项目开发更高效。class Text_Editable { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN...
来源: Laya2.0_示例 发布时间: 20250220
...Texture2D 类用于生成2D纹理。 Hierarchy BaseTexture Texture2D Index Constructors constructor Properties _id destroyedImmediately lock name url uuid DEBUG TEXTURE2D blackTexture errorTexture grayTexture normalTexture whiteTexture Accessors anisoLevel baseMipmapLevel compareMode cpuMemory defau...
来源: Laya3.0_api 发布时间: 20231115
...mpId":3}],"loadList":["comp/button.png"],"loadList3D":[]}; constructor(){ super()} createChildren():void { super.createChildren(); this.createView(GameSceneuiUI.uiView); } } REG("ui.Game...
来源: Laya_社区 发布时间: 20200228
...Script { @property({ type: Laya.VideoNode }) public video: Laya.VideoNode; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { // 鼠标点击触发播放 Laya.stage.on(Laya.Event.MOUSE_DOWN, () => { L...
来源: Laya3.0_文档 发布时间: 20250103
...要在字节层访问数据的高级开发人员。 Hierarchy Byte Index Constructors constructor Properties BIG_ENDIAN LITTLE_ENDIAN Accessors buffer bytesAvailable endian length pos Methods clear getUTFBytes getUTFString readArrayBuffer readByte readFloat32 readFloat32Array readFloat64 readInt16 r...
来源: Laya3.0_api 发布时间: 20231115
...x4 类用于创建4x4矩阵。 Hierarchy Matrix4x4 Implements IClone Index Constructors constructor Properties elements DEFAULT ZERO Methods clone cloneByArray cloneTo decomposeTransRotMatScale decomposeTransRotScale decomposeYawPitchRoll equalsOtherMatrix getElementByRowColumn getForward getInvertF...
来源: Laya3.0_api 发布时间: 20231102