大约有 3,990 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0083 秒)
Laya_社区(2836) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(55)
...Bar; import laya.utils.Handler; public class ProgressBar_Example { private var progressBar:ProgressBar; public function ProgressBar_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/progress.pn...
来源: Laya3.0_api 发布时间: 20231115
...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.st...
来源: Laya2.0_api 发布时间: 20190513
...VSlider; import laya.utils.Handler; public class VSlider_Example { private var vSlider:VSlider; public function VSlider_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vslider.png", "resource...
来源: Laya3.0_api 发布时间: 20231115
...打开小游戏没有重新加载服务器的png,只重新加载了atlas var resArray = [ //{ url: "https://piggy.com/res/atlas/images.atlas", type : Laya.Loader./png}, { url: "https://piggy.com/res/atlas/images.atlas", type: Laya.Loader.ATLAS }, { url: "https://piggy.com/res/swf/flash.json", type...
来源: Laya_社区 发布时间: 20180613
...小游戏作用域为$global,LayaAir已经在发布后的js内,使用var window = $global来替代使用,使用过程中如果存在“xx is undefined”的情况,可以排查下对应js内是否没有进行声明。 Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更...
来源: Laya3.0_文档 发布时间: 20251010
...例。 package { import laya.ui.Clip; public class Clip_Example { private var clip:Clip; public function Clip_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { clip = new Clip("re...
来源: Laya3.0_api 发布时间: 20231115
...只执行一次 onAwake(): void { this.setup(); } private setup(): void { var Animation: Laya.Animation = new Laya.Animation(); Animation.pos(200, 200); //设置节点位置 Animation.source = "resources/role.atlas"; //接收动画数据源为图集 Animation.size(600, 275); //设置节点大小 Ani...
来源: Laya3.0_文档 发布时间: 20251010
...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.st...
来源: Laya2.0_api 发布时间: 20190513
...c] 默认矩阵,禁止修改Matrix3x3Property Detailelementspropertypublic var elements:Float32Array矩阵元素数组Constructor DetailMatrix3x3()Constructorpublic function Matrix3x3() 创建一个 Matrix3x3 实例。 Method Detailclone()method public function clone():* 克隆。 Returns* — 克...
来源: laya_api 发布时间: 20170929
...c] 默认矩阵,禁止修改Matrix3x3Property Detailelementspropertypublic var elements:Float32Array矩阵元素数组Constructor DetailMatrix3x3()Constructorpublic function Matrix3x3() 创建一个 Matrix3x3 实例。 Method Detailclone()method public function clone():* 克隆。 Returns* — 克...
来源: Laya2.0_api 发布时间: 20190513