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

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

461. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 67%]

...新建个项目。代码如下所示: ```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

462. 文本-单行输入 [ 67%]

...语言、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_示例 发布时间: 20241001

463. Laya.Video内存泄漏问题 [ 67%]

...var video = new Laya.Video(); 这行代码报错   提示说Video中的Constructor不存在。   原文:Laya.Video is not a constructor 2018-04-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 PYS_Goon 相关问题 发起问题...

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

464. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 67%]

...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

465. 视频节点 · LayaAir3.0文档 · LAYABOX [ 67%]

...Script { @property({ type: Laya.VideoNode }) public video: Laya.VideoNode; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { // 鼠标点击触发播放 Laya.stage.on(Laya.Event.MOUSE_DOWN, () => { L...

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

466. 文本-禁止编辑 [ 67%]

...开发语言、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_示例 发布时间: 20241001

467. laya.resource.Texture2D_API3.0 [ 67%]

...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

468. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 67%]

...mpId":3}],"loadList":["comp/button.png"],"loadList3D":[]};         constructor(){ super()}         createChildren():void {             super.createChildren();             this.createView(GameSceneuiUI.uiView);         }     }     REG("ui.Game...

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

469. laya.utils.Byte_API3.0 [ 67%]

...要在字节层访问数据的高级开发人员。 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

470. laya.d3.math.Matrix4x4_API3.0 [ 67%]

...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