• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 3,974 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0078 秒)

1451. laya.display.cmd.TranslateCmd [ 75%]

...D : String = Translate[static] TranslateCmdProperty Detailtxpropertypublic var tx:Number 添加到水平坐标(x)上的值。 typroperty public var ty:Number 添加到垂直坐标(y)上的值。 Method Detailrecover()method public function recover():void 回收到对象池 Constant DetailID...

来源: Laya2.0_api 发布时间: 20190513

1452. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 75%]

..., this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = new TestView(); //Laya.stage.addChild(testView); // //return; Laya.timer.once(3000, this, function():void{ var sprite:Sprite = new Sprite(); sprite.pos(0, 0); var texture:Texture = new Texture(Browser....

来源: Laya_社区 发布时间: 20180525

1453. 字节平台(抖音预览调试),因为一行代码导致无法启动问题 [ 75%]

...urn new Date(instance.getTime()) as any } if (instance instanceof Array) { var cloneArr = [] as any[] ;(instance as any[]).forEach((value) => { cloneArr.push(value) }) return cloneArr.map((value: any) => GameUtils.deepCopy<any>(value)) as any } if (instance instanceof Object) { var copyI...

来源: Laya_社区 发布时间: 20230625

1454. destination-out 叠加模式问题 [ 75%]

...从图上看到的信息不全面 li970704928 • 2017-12-13 19:03 private var maskArea:Sprite; private var sp:Sprite; private var guideContainer:Sprite; public function openPoison():void { mapData = mapSession.mapData; guideContainer=new Sprite(); guideContainer.cacheAs = "bitmap"; this.a...

来源: Laya_社区 发布时间: 20171213

1455. 3Ddemo加载Unity导出场景报错resou._removeReference is not a function [ 75%]

...继承式页面类,可以直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果 * 建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用继承式写法,如果是独立小模块,功能...

来源: Laya_社区 发布时间: 20190426

1456. 使用官方文档中qrcode生成二维码的代码,打包APP后无效 [ 74%]

...了,麻烦老师看下是什么问题,谢谢! private initCode() { var div: any = Laya.Browser.document.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div, { width: 100, height: 100 }); var url: string = this.URL; this.qrcode.makeCode(url); Laya.stage.once("click", this, th...

来源: Laya_社区 发布时间: 20180412

1457. 官方文档里的位图字体的制作与使用JS 跑不通 以及 文档的几个问题 [ 74%]

...aceWidth(10);Laya.Text.registerBitmapFont(this.mFontName,this.mBitmapFont);var txt = new Laya.Text();txt.text = "这是测试";//设置宽度,高度自动匹配txt.width = 250;//自动换行txt.wordWrap = true;txt.align = "center";//使用我们注册的字体txt.font = this.mFontName;txt.fontSize...

来源: Laya_社区 发布时间: 20180919

1458. iframe页面嵌套下失焦(焦点在父窗口被聚焦),playMusic背景音乐播放无声音 [ 74%]

..._tMusic) { if (_musicMuted) return null; } else { if (Render.isConchApp) { var ext:String = Utils.getFileExtension(url); if (ext != "wav" && ext != "ogg") { alert("The sound only supports wav or ogg format,for optimal performance reason,please refer to the official website document."); retur...

来源: Laya_社区 发布时间: 20190115

1459. 关于as版的Animation.createFrames()不能工作? [ 74%]

...et.Loader; import laya.events.Event; public class LayaUISample { protected var text:Text; protected var aaa:AAA; public function LayaUISample() { Laya.init(1540, 990); Laya.Stat.show(); Laya.loader.load("res/atlas/war.json", Laya.Handler.create(this, this.onLoaded), null, Laya.Loader.ATLAS); Laya.lo...

来源: Laya_社区 发布时间: 20161026

1460. 天空网格(TypeScript-3D基础(TS)-LayaAir3D之天空) [ 74%]

...性就行。 > 使用盒型网格 ```typescript //初始化天空渲染器 var skyRenderer = scene.skyRenderer; //创建天空mesh skyRenderer.mesh = Laya.SkyBox.instance; ``` > 使用球形网格 ```typescript //初始化天空渲染器 var skyRenderer = scene.skyRenderer; //创建天空mesh skyRen...

来源: Laya2.0_文档 发布时间: 20210715