大约有 116 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0025 秒)
...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
...开发更高效。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_示例 发布时间: 20241118
...言、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_示例 发布时间: 20241118
...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Loader = Laya.Loader; var Handler = Laya.Handler; var ROBOT_DATA_PATH = "res/skeleton/robot/robot.bin"; var ROBOT_TEXTURE_PATH = "res/skeleton/robot/texture.png"; (function() { Laya.init(100, 100); var assets...
来源: Laya2.0_示例 发布时间: 20241118
..._Keyboard { private var logger:Text; private var keyDownList:Array; public function Interaction_Keyboard() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.sta...
来源: Laya2.0_示例 发布时间: 20241118
...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_示例 发布时间: 20241118
... 0; private var mFactory2:Templet; private var mLabelSprite:Sprite; public function Skeleton_SpineEvent() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); mLabelSprite = new Sprite(); startFun(); } public function startFun():void { mAniPath = "...
来源: Laya2.0_示例 发布时间: 20241118
...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_示例 发布时间: 20241118
...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_示例 发布时间: 20241118
... 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_示例 发布时间: 20241118