大约有 112 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0029 秒)
...laya.utils.Handler; import laya.webgl.WebGL; public class UI_List { public function UI_List() { // 不支持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.stage...
来源: Laya2.0_示例 发布时间: 20241117
...言、LayaAirIDE让项目开发更高效。window.Laya=window.Laya||{}; (function (exports, Laya) { 'use strict'; class Physics_Physics_CollisionFiltering { constructor() { this.preMovementX = 0; this.preMovementY = 0; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat....
来源: Laya2.0_示例 发布时间: 20241117
...racter4]; private var characters:Array = []; private var text:Text; public function PerformanceTest_Cartoon2() { Laya.init(1280, 720, WebGL); Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Stat.enable(); Laya.stage.loadImage("../../res/cartoon2/background.jpg", 0, 0, 1280, 900); createCharacters()...
来源: Laya2.0_示例 发布时间: 20241117
...ndler = Laya.Handler; var Event = Laya.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码提示 this.btn.on(Event.CLICK, this, onBtnClick); this.btn2.on(Event.CLICK, this, onBtn2Click); function...
来源: Laya2.0_示例 发布时间: 20200319
...private var mArmature:Skeleton; private var mCurrSkinIndex:int = 0; public function Skeleton_MultiTexture() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); } public function startFun():void { mAniPath = "../../res/spine/spineRes1/d...
来源: Laya2.0_示例 发布时间: 20241117
... private var mCurrSkinIndex:int = 0; private var mFactory2:Templet; public function Skeleton_SpineVine() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); } public function startFun():void { mAniPath = "../../res/spine/spineRes5/vine...
来源: Laya2.0_示例 发布时间: 20241117
... private var mCurrSkinIndex:int = 0; private var mFactory2:Templet; public function Skeleton_SpineStretchyman() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); } public function startFun():void { mAniPath = "../../res/spine/spineRe...
来源: Laya2.0_示例 发布时间: 20241117
...dex:int = 0; private var mSkinList:Array = ["goblin","goblingirl"]; public function Skeleton_ChangeSkin() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); } public function startFun():void { mAniPath = "../../res/spine/spineRes2/gob...
来源: Laya2.0_示例 发布时间: 20241117
... []; private var wrapBounds:Rectangle; private var maggotTexture:*; public function PerformanceTest_Maggots() { Laya.init(Browser.width,Browser.height, WebGL); Laya.stage.bgColor = "#000000"; Stat.show(); wrapBounds = new Rectangle(-padding, -padding, Laya.stage.width + padding * 2, Laya.stage.heigh...
来源: Laya2.0_示例 发布时间: 20241117
...开发更高效。let character, duration = 2000, tween; class Tween_EaseFunctionsDemo { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage, Browser = Laya.Browser, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.al...
来源: Laya2.0_示例 发布时间: 20241117