大约有 356 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
Laya_社区(99) Laya_示例(78) Laya2.0_示例(68) Laya3.0_api(55) Laya2.0_文档(35) Laya3.0_文档(10) laya_api(6) Laya2.0_api(5)
...} private createCharacters(): void { this.characterGroup = []; for (var i: number = 0; i = 0; --i) { this.animateCharactor(this.characterGroup[i]); } } private animateCharactor(charactor: Sprite): void { charactor.x += this.moveSpeed; charactor.rotation += this.rotateSpeed; if (charactor.x > Laya.st...
来源: Laya2.0_示例 发布时间: 20251130
...rt default class CMat extends Laya.BaseMaterial { public static _mainTex : number; public static _mainCol : number; inited : boolean = false; constructor() { super(); if(!this.inited) { CMat._mainTex = Laya.Shader3D.propertyNameToID("u_MainTex"); CMat._mainCol = Laya.Shader3D.propertyNameToID("u_Mai...
来源: Laya_社区 发布时间: 20190814
..."#232628"; this.demonstrate(); } private demonstrate(): void { for (var i: number = 0; i < 10; i++) { Laya.timer.callLater(this, this.onCallLater); } } private onCallLater(): void { console.log("onCallLater triggered"); var text: Text = new Text(); text.font = "SimHei"; text.fontSize = 30; text.colo...
来源: Laya_示例 发布时间: 20251130
...: Sprite = new Sprite(); // 随机摆放文本 var text: Text; for (var i: number = 0; i < 1000; i++) { text = new Text(); text.fontSize = 20; text.text = (Math.random() * 100).toFixed(0); text.rotation = Math.random() * 360; text.color = "#CCCCCC"; text.x = Math.random() * Laya.stage.width; text.y ...
来源: Laya_示例 发布时间: 20251130
...position: Laya.Vector3; private _outPos: Laya.Vector3; private scaleDelta: number = 0; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.S...
来源: Laya_示例 发布时间: 20251130
..."#232628"; this.demonstrate(); } private demonstrate(): void { for (var i: number = 0; i < 10; i++) { Laya.timer.callLater(this, this.onCallLater); } } private onCallLater(): void { console.log("onCallLater triggered"); var text: Text = new Text(); text.font = "SimHei"; text.fontSize = 30; text.colo...
来源: Laya2.0_示例 发布时间: 20251130
...: Sprite = new Sprite(); // 随机摆放文本 var text: Text; for (var i: number = 0; i < 1000; i++) { text = new Text(); text.fontSize = 20; text.text = (Math.random() * 100).toFixed(0); text.rotation = Math.random() * 360; text.color = "#CCCCCC"; text.x = Math.random() * Laya.stage.width; text.y ...
来源: Laya2.0_示例 发布时间: 20251130
...对象池内。 ##### ```typescript class PoolTest { private createTime: number = 0; constructor() { //初始化引擎 Laya.init(1136, 640, Laya.WebGL); //等比缩放 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //帧循环 Laya.timer.frameLoop(1, ...
来源: Laya2.0_文档 发布时间: 20210715
...derTexture,subRendertexture); //设置模糊的参数 var downSampleFactor:number = 2; var downSampleWidth:number = viewPort.width/downSampleFactor; var downSampleheigh:number = viewPort.height/downSampleFactor; var texSize:Vector4 = new Vector4(1.0/viewPort.width,1.0/viewPort.height,viewPort.width,...
来源: Laya_社区 发布时间: 20201218
...据 private _imageData: Laya.Texture; // 文本字间距 private _padding: number = 0; // 所有元素; private charSprites: Laya.Sprite; // 位置类型 private _posType: string; // 左 右 中 public static LEFT: string = "left"; public static RIGHT: string = "right"; public static CENTER: strin...
来源: Laya_社区 发布时间: 20161014