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

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

1111. Sprite-节点控制 [ 44%]

...ort class Sprite_NodeControl { private ape1: Sprite; private ape2: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "sh...

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

1112. UI-Tree [ 44%]

...port WebGL = Laya.WebGL; import Utils = Laya.Utils; export class UI_Tree { 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_SHOWALL; Laya.stage.bgCo...

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

1113. 骨骼动画-多纹理 [ 44%]

...number = 0; private mArmature:Skeleton; private mCurrSkinIndex:number = 0; constructor() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } public startFun():void { this.mAniPath = "../../res/spine/spineRes1/dragon.sk"; this.mF...

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

1114. 颜色滤镜 差值变化 [ 44%]

...tsFilter: Laya.ColorFilter = null; private _persent: number = 0; protected constructor() { this.targets = new Array<Laya.Sprite>(); } /** * 实例 */ public static getInstance(): ColorTool { if (ColorTool.instance == null) { ColorTool.instance = new ColorTool(); } return ColorTool.instance; }...

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

1115. Laya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText [ 44%]

...10 10:39 export class ShopTitle extends Laya.Script{ public title: string; constructor(){ super(); } public _initialize(owner: Laya.Sprite3D): void { super._initialize(owner); var sprite3D = this.owner as Laya.MeshSprite3D; var sprite3DMat = new Laya.StandardMaterial(); sprite3DMat.cull = Laya.BaseM...

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

1116. 网络和格式-ProtocolBuffer [ 44%]

...s Network_ProtocolBuffer { private ProtoBuf:any = Browser.window.protobuf; constructor() { Laya.init(550, 400); this.ProtoBuf.load("../../res/protobuf/user.proto", this.onAssetsLoaded); } private onAssetsLoaded(err:any, root:any):void { if (err) throw err; // Obtain a message type var AwesomeMessage...

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

1117. 网络和格式-ProtocolBuffer [ 44%]

...s Network_ProtocolBuffer { private ProtoBuf:any = Browser.window.protobuf; constructor() { Laya.init(550, 400); this.ProtoBuf.load("res/protobuf/user.proto", this.onAssetsLoaded); } private onAssetsLoaded(err:any, root:any):void { if (err) throw err; // Obtain a message type var AwesomeMessage:any =...

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

1118. LayaBox进阶之UI管理类 [ 44%]

...e mainContent: Laya.Sprite; private scene: GameScence; private uiList:any; constructor() { this.mainContent = new Laya.Sprite(); this.uiList = ; } }mainContent 为默认添加到的层级, GameScence 为UI管理器默认场景 uiList放所有加载进来的场景 第一步实现 打开界面 openW...

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

1119. List翻页效果怎么实现 [ 44%]

...DialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rul...

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

1120. 面板容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...property } = Laya; @regClass() export class UI_Panel extends Laya.Script { constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { // 创建Panel组件 let panel: Laya.Panel = new Laya.Panel(); panel.hScrollB...

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