大约有 778 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
Laya_社区(405) Laya2.0_文档(169) Laya_示例(108) Laya2.0_示例(67) Laya3.0_文档(16) Laya3.0_api(11) Laya2.0_api(2)
... header: { 'content-type': 'application/x-www-form-urlencoded' }, success: function (res) { console.log('IP地址: ' + res.data.ip); Test222.IP = res.data.ip; } }); 2020-01-06 1 0 分享 微博 QZONE 微信 1560942887用户 赞同来自: 解决了 2020-01-06 0 0 分享 微博 QZONE 微信 为什么...
来源: Laya_社区 发布时间: 20200106
...res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }...
来源: Laya2.0_文档 发布时间: 20210714
...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Text = Laya.Text; var Gyroscope = Laya.Gyroscope; var RotationInfo = Laya.RotationInfo; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = La...
来源: Laya_示例 发布时间: 20251130
...res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }...
来源: Laya2.0_文档 发布时间: 20210715
...laya.webgl.WebGL; public class LayaAirDemo { private var img:Image; public function LayaAirDemo() { 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.bgColor = "#232628"; Laya.loader.load...
来源: Laya_社区 发布时间: 20170704
...I_TextArea { private var skin:String = "../../res/ui/textarea.png"; public function UI_TextArea() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.s...
来源: Laya2.0_示例 发布时间: 20251130
生成的粒子特效怎么设置colorComponentInter无效? function UILetterBox(letter, width) { UILetterBox.super(this); letter = letter; this.loadImage('res/jiezou/wenzi2.png'); Laya.loader.load("res/parts/qipao.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); } function onAsse...
来源: Laya_社区 发布时间: 20161230
...Font.loadFont("res/bitmapFont/test.fnt",new Laya.Handler(this,onLoaded)); function onLoaded(){init();}function init(){//如果位图字体中,没放空格,最好设置一个空格宽度this.mBitmapFont.setSpaceWidth(10);Laya.Text.registerBitmapFont(this.mFontName,this.mBitmapFont);var txt = new...
来源: Laya_社区 发布时间: 20180919
... laya.utils.Browser; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(500,500);//初始化引擎 var skins:Array = [ "res/button-1.png" ]; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); } public function onUIAssetsLoaded():void { v...
来源: Laya_社区 发布时间: 20180529
...内容相关的链接 提交 2 个回复 cuixueying 赞同来自: private function onPlayMusic(e:Event=null):void { trace("播放音乐"); SoundManager.playMusic("res/sounds/bgm.mp3", 1, new Handler(this, onComplete)); } private function onPlaySound(e:Event=null):void { trace("播放音效"); SoundM...
来源: Laya_社区 发布时间: 20170330