大约有 1,106 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0051 秒)
Laya_社区(447) Laya3.0_api(292) Laya_示例(112) Laya2.0_示例(80) Laya2.0_文档(61) Laya3.0_文档(52) Laya2.0_api(35) laya_api(27)
...在index.html中引用。编写以下代码: ```typescript class Main { constructor() { //初始化舞台 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/ui.atlas",Laya.Ha...
来源: Laya2.0_文档 发布时间: 20210715
...t WebGL = Laya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(740, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#23...
来源: Laya_示例 发布时间: 20251209
...; private playerUnit:Laya.Animation[]; private enemyUnit:Laya.Animation[]; constructor(){ super(); Laya.stage.alignH= Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; } onEnable(){ this.playerUnit = []; this.enemyUnit = []; this.playerUnit.push(new Laya.Animation()); this.enemyU...
来源: Laya_社区 发布时间: 20200910
...otate(rotation, true); });class VRScene1 { private rotation: Laya.Vector3; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Sc...
来源: Laya_示例 发布时间: 20251209
...Material extends Laya.BaseMaterial { static DIFFUSETEXTURE_ID: number = 1; constructor() { super(); this.setShaderName("CustomShader"); } public getDiffuseTexture(): Laya.BaseTexture { return this._getTexture(CustomMaterial.DIFFUSETEXTURE_ID); } public setDiffuseTexture(value: Laya.BaseTexture): voi...
来源: Laya_社区 发布时间: 20170815
...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_社区 发布时间: 20170215
...码如下 export default class OutlineMaterial extends Laya.BaseMaterial { constructor() { super() var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0, 'a_Texcoord': Laya.VertexMesh.MESH_TEXTURECOORDINATE0, } var uniformMap = { 'u_MvpMatrix': [...
来源: Laya_社区 发布时间: 20180925
...e_DrawShapes { private sp: Sprite; constructor() { Laya.init(500, 300, WebGL); this.drawSomething(); } private drawSomething(): void { ...
来源: Laya2.0_文档 发布时间: 20210715
...n get delta():intscaleproperty public var scale:Number = 1 时针缩放。Constructor DetailTimer()Constructorpublic function Timer(autoActive:Boolean = true) 创建 Timer 类的一个实例。 Parameters autoActive:Boolean (default = true)Method DetailcallLater()method public function callLater(ca...
来源: Laya2.0_api 发布时间: 20190513
...roperty 'pivotX' of null 打开弹窗UI时报错 Uncaught TypeError: Class constructor Component cannot be invoked without 'new' TypeError: Cannot read property 'length' of null TypeError: Cannot read property 'getSubShaderAt' of undefined Uncaught TypeError: Cannot read property 'indexCount' Uncaug...
来源: Laya_社区 发布时间: 20180307