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

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

781. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 45%]

... by the LayaAirIDE*/ module view { export class Guide extends ui.GuideUI { constructor() { super(); // 创建Video元素 let videoElmt: any = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElmt); // 设置Video元素地样式和属性 videoElmt.style.zInddex = Laya....

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

782. List翻页效果 [ 45%]

...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_社区 发布时间: 20171202

783. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 45%]

...我看一下 xdkaka • 2017-12-13 17:03 没办法发图了 class Main { constructor() { Laya.init(480, 852); Laya.stage.scaleMode = "showall"; Laya.stage.alignV = 'middle'; Laya.stage.alignH = 'center'; Laya.stage.screenMode = "vertical"; Laya.stage.bgColor = "#101825"...

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

784. UI-Tree [ 45%]

...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_示例 发布时间: 20250225

785. 2D物理-复合碰撞器 [ 45%]

...言、LayaAirIDE让项目开发更高效。class Physics_Physics_Tumbler { constructor() { this.count = 0; this.totalBox = 200; Laya.Config.isAntialias = true; Laya.Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable({ gravity: 0 }); Laya...

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

786. 骨骼动画-多纹理 [ 45%]

...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_示例 发布时间: 20250225

787. 颜色滤镜 差值变化 [ 45%]

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

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

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

789. LayaBox进阶之UI管理类 [ 45%]

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

790. Sprite-节点控制 [ 45%]

...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_示例 发布时间: 20250225