大约有 772 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0047 秒)
Laya_社区(403) Laya2.0_文档(169) Laya_示例(108) Laya2.0_示例(67) Laya3.0_文档(12) Laya3.0_api(11) Laya2.0_api(2)
... 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_示例 发布时间: 20241118
...t laya.utils.Utils; import laya.webgl.WebGL; public class UI_Tree { public function UI_Tree() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV = Stage.ALIGN_MIDDLE; //画布水平居中对齐 Laya.stage.alignH = Stage.ALIGN_CENTER; ...
来源: Laya2.0_文档 发布时间: 20210715
...terial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; })); //测试遮挡剔除 material.cull = 0 box.meshRenderer.material = material; let res1 = Laya.Sprite3D.instantiate(box); let res2 = Laya.Sprite3D.instantiat...
来源: Laya_社区 发布时间: 20190717
clearUnLoaded的bug LayaAirIDE1.7.9 function test(){ var arr = [res.popup.atlas("loadingUI"), res.download.bg("bg5")] Laya.loader.load(arr, Laya.Handler.create(this, onComplete)) Laya.loader.clearUnLoaded() Laya.loader.load(arr, Laya.Handler.create(this, onComplete))...
来源: Laya_社区 发布时间: 20190630
...*/ public class SkeletonTempletSample { public var templet:Templet; public function SkeletonTempletSample() { WebGL.enable(); Laya.init(1000, 900); //创建动画模板 templet = new Templet(); templet.on(Event.COMPLETE, this, parseComplete); templet.on(Event.ERROR, this, onError); //加载动画文...
来源: Laya2.0_文档 发布时间: 20210715
...0; private var hitArea:HitArea; private var interactionArea:Sprite; public function Sprite_Guide() { Laya.init(1285, 727); Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; //绘制一个蓝色方块,不被抠图 var gameContainer:Sprite = new Sprite(); gameContainer....
来源: Laya2.0_示例 发布时间: 20241118
...s/res/image/fireIcon.png",0,0,200,200,new Laya.Handler(this,onloadImage)); function onloadImage(){ console.log('图片加载结束'); Laya.stage.addChild(fireIcon); } 资源的结构为: |-.laya |-bin |-laya |-assets |-res |-image |-fireIcon.png |-libs |-src 2018-06-...
来源: Laya_社区 发布时间: 20180619
...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var MapLayer = Laya.MapLayer; var TiledMap = Laya.TiledMap; var Point = Laya.Point; var Rectangle = Laya.Rectangle; var Handler = Laya.Handler; var WebGL = Laya.W...
来源: Laya_示例 发布时间: 20241118
... public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400); start(); } private function start():void { ...
来源: Laya_社区 发布时间: 20170608
...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