大约有 1,296 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0052 秒)
Laya_社区(736) Laya2.0_文档(164) Laya3.0_api(108) Laya2.0_示例(81) Laya_示例(70) Laya2.0_api(58) laya_api(54) Laya3.0_文档(25)
...lter; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Main { private ApePath: string = "../../res/apes/monkey2.png"; private apeTexture: Texture; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(B...
来源: Laya2.0_文档 发布时间: 20210715
...aya.Rectangle; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var ApePath = "../../res/apes/monkey2.png"; var ape, dragRegion; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, Web...
来源: Laya_示例 发布时间: 20241117
... = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMo...
来源: Laya2.0_示例 发布时间: 20241117
...ar Button = Laya.Button; var Clip = Laya.Clip; var Image = Laya.Image; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var buttonSkin = "../../res/ui/button-7.png"; var clipSkin = "../../res/ui/num0-9.png"; var bgSkin = "../../res/ui/coutDown.png"; var counter, currFrame, controller; (function()...
来源: Laya_示例 发布时间: 20241117
...。(function() { var Sprite = Laya.Sprite; var Browser = Laya.Browser; var Handler = Laya.Handler; var Stat = Laya.Stat; var Rectangle = Laya.Rectangle; var WebGL = Laya.WebGL; var texturePath = "../../res/tinyMaggot.png"; var padding = 100; var maggotAmount = 5000; var tick = 0; var maggots = []; v...
来源: Laya_示例 发布时间: 20241117
... = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.st...
来源: Laya2.0_示例 发布时间: 20241117
...ater.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Laya.Handler.create(this, this.mapLoaded), null, new Point(1600, 800)); } onStageClick() { let p = new Laya.Point(0, 0); // 通过屏幕坐标来获取选中格子的索引 this.layer.getTilePositionByScreenPos(Laya.stage.mouseX, ...
来源: Laya2.0_示例 发布时间: 20241117
...s //3d场景加载 Laya.Scene3D.load("res/TerrainScene/XunLongShi.ls",Laya.Handler.create(this,function(scene) { //加载完成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCa...
来源: Laya2.0_文档 发布时间: 20210715
...t //3d场景加载 Laya.Scene3D.load("res/TerrainScene/XunLongShi.ls",Laya.Handler.create(null,function(scene){ //加载完成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCam...
来源: Laya2.0_文档 发布时间: 20210715
...a.ColorFilter; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var ApePath = "../../res/apes/monkey2.png"; var apeTexture; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); ...
来源: Laya_示例 发布时间: 20241117