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

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

391. 多行输入文本组件 · LayaAir3.0文档 · LAYABOX [ 71%]

... 1.3 脚本控制TextArea const { regClass, property } = Laya; @regClass() export class TextAreaControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextArea } ) public txtarea: Laya.TextArea; constructor() { super(); } /** * 组件被激活后执行,此时所有...

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

392. 面板容器组件 · LayaAir3.0文档 · LAYABOX [ 71%]

...现脚本控制Panel: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Panel }) public panel: Laya.Panel; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this...

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

393. laya.ani.bone.canvasmesh.SkinMeshForGraphic_API3.0 [ 71%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/ani/bone/canvasmesh/SkinMeshForGraphic" SkinMeshForGraphic Class SkinMeshForGraphic Laya Hierarchy MeshData SkinMeshForGraphic Index Constructors constructor Properties canvasPadding indexes textur...

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

394. 微信小游戏,实现监听前后台切换 [ 71%]

...xt) return window.wx.offHide(callback) } } const wxHelper = new WXHELPER() export default wxHelper     gameController.js  import wxHelper from 'wxhelper' export default class welcome extends Laya.Script { constructor() { super() } onEnable() { wxHelper.onShow(this.resumeGame) wxHelper.onHide(this...

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

395. LayaBox进阶之UI管理类 [ 71%]

...分; 打开界底层是addChild打开的;     新建一个UIManagerexport class UIManager { private mainContent: Laya.Sprite; private scene: GameScence; private uiList:any; constructor() { this.mainContent = new Laya.Sprite(); this.uiList = ; } }mainContent 为默认添加到的层级, GameS...

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

396. 文本-多行输入 [ 71%]

...ge = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_InputMultiline { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN...

来源: Laya2.0_示例 发布时间: 20240930

397. 加载-错误处理和进度 [ 71%]

...Laya.Loader; import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_ProgressAndErrorHandle { constructor() { Laya.init(550, 400); // 无加载失败重试 Laya.loader.retryNum = 0; var urls: Array = ["do not exist", "res/fighter/fighter.png", "res/legend/map.jpg"]; Laya.lo...

来源: Laya2.0_示例 发布时间: 20240930

398. laya.d3.core.render.RenderContext3D_API3.0 [ 71%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/render/RenderContext3D" RenderContext3D Class RenderContext3D RenderContext3D 类用于实现渲染状态。 Hierarchy RenderContext3D Index Constructors constructor Properties configPipeLi...

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

399. laya.html.XMLIterator_API3.0 [ 71%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/html/XMLIterator" XMLIterator Class XMLIterator Hierarchy XMLIterator Index Properties attrParsed lastTagEnd lastTagName lowerCaseName parsePos source sourceLen tagLength tagName tagPos tagType Acc...

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

400. UI-Image [ 71%]

... Stage = Laya.Stage; import Image = Laya.Image; import WebGL = Laya.WebGL; export class UI_Image { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_...

来源: Laya_示例 发布时间: 20240930