大约有 1,102 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0052 秒)
Laya_社区(444) Laya3.0_api(292) Laya_示例(112) Laya2.0_示例(80) Laya2.0_文档(61) Laya3.0_文档(51) Laya2.0_api(35) laya_api(27)
...响的材质。 Hierarchy Material UnlitMaterial Implements IClone Index Constructors constructor Properties _id destroyedImmediately lock name renderQueue url uuid ALBEDOCOLOR ALBEDOTEXTURE ALPHATESTVALUE DEBUG RENDERMODE_ADDTIVE RENDERMODE_CUTOUT RENDERMODE_OPAQUE RENDERMODE_TRANSPARENT RENDERQUEU...
来源: Laya3.0_api 发布时间: 20231115
...成球体,直接调用的没有问题的,可以正常执行,但是 constructor() { super(); //添加3D场景 this.onAwake(); //加载camera和light this.onStart(); //加载地面 this.loadGround(); //加载墙面 this.loadwall(); this.loopShoot(); } public loopShoot(): void{ Laya.timer.loop(10...
来源: Laya_社区 发布时间: 20190506
... (图5) **示例代码:** ```typescript class PanelTest { constructor() { //初始化引擎 Laya.init(800, 600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //实例化Panel组件 var panel:...
来源: Laya2.0_文档 发布时间: 20210715
...ya.Sprite { public are: Laya.Rectangle = new Laya.Rectangle(0, 0, 60, 30); constructor() { super(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loo...
来源: Laya_社区 发布时间: 20180315
....load("../../res/threeDimen/env/sp_default/env.png");class SkyDomeSample { 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_示例 发布时间: 20250225
...private vx:number = 0 private vy:number = 0; private targetPosition:Point; constructor() { Laya.init(Browser.width, Browser.height, WebGL); // 初始化蛇 this.initSnake(); // 监视加速器状态 Accelerator.instance.on(Event.CHANGE, this, this.monitorAccelerator); // 游戏循环 Laya.timer.fram...
来源: Laya_示例 发布时间: 20250225
...ate moveSpeed = 2; private rotateSpeed = 2; private characterGroup: Array; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load("../../res/cartoonCharacters/cartoonCharactors.json", Ha...
来源: Laya_示例 发布时间: 20250225
...20 public $circleSprite: Sprite = new Sprite() public startY: number = -90 constructor() { super() this._init() } private _init() { this.cacheAs = "bitmap" this.size(this.DEF_SIZE,this.DEF_SIZE) this.pos(200,200) this.cacheAs = "bitmap" this.graphics.drawPie(this.DEF_SIZE >> 1, this.DEF_SIZE &...
来源: Laya_社区 发布时间: 20180123
...<String> = [ "gate/Conventional/Test.ls", ]; constructor() { super(); } onAwake(): void { Laya.loader.create(this.resource, Laya.Handler.create(this, this.onPreLoadFinish)); } onPreLoadFinish() { //初始化3D场景 ...
来源: Laya_社区 发布时间: 20190925
...跟随旋转 module dialog { export class WanF extends ui.dialog.WanFUI { constructor() { super(); this.rotation = 90; this.pos(1060, 280); let panel = new Laya.Panel(); panel.size(638, 527); panel.vScrollBarSkin = "CommDialog/vscroll.png"; this.sp_wanfa.addChild(panel); let t = new Laya.Label(); t....
来源: Laya_社区 发布时间: 20180426