大约有 284 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0034 秒)
Laya_社区(139) Laya_示例(59) Laya2.0_示例(53) Laya2.0_文档(25) Laya3.0_文档(4) Laya3.0_api(2) laya_api(1) Laya2.0_api(1)
...Example_04 { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas Laya.init(w, h, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scal...
来源: Laya2.0_示例 发布时间: 20241123
...= new Laya.Vector3(0, 0.01, 0); this.normalMapUrl = ["../../res/threeDimen/staticModel/lizardCal/rock_norm.png", "../../res/threeDimen/staticModel/lizardCal/lizard_norm.png", "../../res/threeDimen/staticModel/lizardCal/lizard_norm.png"]; Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.scree...
来源: Laya_示例 发布时间: 20241123
...aya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/PBRMaterialScene/Showcase.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Main Cam...
来源: Laya_示例 发布时间: 20241123
...ya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; import Stat = Laya.Stat; export class Animation_SWF{ private SWFPath:string = "h5/res/Map11.swf"; private MCWidth:number = 760; private MCHeight:number = 650; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.i...
来源: Laya_社区 发布时间: 20171103
...; import laya.events.Event; import laya.events.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() { WebGL.enable(); Laya.init(1000, 800); //显示一个图片 sp = Sprite.fromImage("res/bg.jpg"); ...
来源: Laya2.0_文档 发布时间: 20210714
...; import laya.events.Event; import laya.events.Keyboard; import laya.utils.Stat; import laya.webgl.WebGL; public class ClearTextureResTest { private var sp:Sprite; public function ClearTextureResTest() { WebGL.enable(); Laya.init(1000, 800); //显示一个图片 sp = Sprite.fromImage("res/bg.jpg"); ...
来源: Laya2.0_文档 发布时间: 20200929
...代码 (function () { 'use strict'; class GameConfig { constructor() { } static init() { var reg = Laya.ClassUtils.regClass; } } GameConfig.width = 640; GameConfig.height = 1136; GameConfig.scaleMode = "fixedwidth"; GameConfig.screenMode = "none"; GameConfig.alignV = "top"; GameConfig.alignH = "le...
来源: Laya_社区 发布时间: 20200104
...dler = Laya.Handler; var WebGL = Laya.WebGL; var Loader = Laya.Loader; var Stat = Laya.Stat; var Particle2D = Laya.Particle2D; (function () { // Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.init(Browser.clientWidth, Browser.clientHeight); Laya.stage.alignV = Stage.ALIGN_MIDDLE; ...
来源: Laya_社区 发布时间: 20170103
...nit(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable({ gravity: 0 }); Laya.PhysicsDebugDraw.enable(); Laya.Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.Laya.stage.scaleMode = Laya.Stage.SCAL...
来源: Laya2.0_示例 发布时间: 20241123
...aya.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.Scene; var camera1: Laya.Camera = scene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera1.clearColor = new Laya.Vector4(0.3, 0.3,...
来源: Laya_示例 发布时间: 20241123