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

大约有 786 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0059 秒)

461. Handler.create的回收问题 [ 57%]

...aya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Test { private h1: Laya.Handler; private h2: Laya.Handler; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; L...

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

462. LAYABOX游戏实时语音之APP版本 [ 57%]

...> </manifest> app\build.gradle app\proguard-rules.pro 添加-keep class demo.* -keep com.youme.imsdk.* -keep com.youme.imsdk.**{*;} -keep class com.youme.IMEngine.** -keep class com.youme.IMEngine.**{*;} -keep class com.iflytek.**{*;} -keepattributes Signature新建目录 “YIMChat” 建...

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

463. 分享-js资源进度加载 [ 57%]

分享-js资源进度加载 var ui_Socket: Socket; // 程序入口 class GameMain { //进度UI Progress: Progress; Socket: Socket; arr = [ { url: "images/1.jpg", type: Laya.Loader.IMAGE } , { url: "images/2.jpg", type: Laya.Loader.IMAGE } , { url: "images/3.jpg", type: Laya.Loader.IMAGE } , { url: ...

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

464. 3D项目Label组件增加最少15M内存 [ 57%]

... 淡淡的疯 • 2018-09-10 21:27 3D模式下的确是这样,20M内存 class LayaAir3D { constructor() { //初始化微信小游戏 Laya.MiniAdpter.init(); //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SC...

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

465. 我在dialog a上继续弹出dialog b 。需要关闭b的时候,a依然存在。怎么做? [ 57%]

....scene"); this.close(); } a和b都是独立的ts类, export default class a extends ui.a {……} 同时a和b都是对应的dialog ui文件a.scene 和b.scene的runtime属性关联过去的。

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

466. image.skin = base64 无效 [ 57%]

...esource.HTMLCanvas; import laya.ui.Image; /** * ... * @author ww */ public class TestBase64Img { public function TestBase64Img() { Laya.init(1000, 900); testDraw(); } public function testDraw():void { var sp:Sprite; sp = new Sprite(); sp.graphics.drawRect(0, 0, 100, 100, "#ff0000"); Laya.stage.addCh...

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

467. laya.ui.Dialog [ 57%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames DialogProperties | Methods | Events | Constants Packagelaya.uiClasspublic class DialogInheritanceDialog View Box Component Sprite Node EventDispatcher ObjectSubclasses AsynDialog Dialog 组件是一个弹出对话框...

来源: laya_api 发布时间: 20170929

468. 聊天室存储数据 [ 57%]

...t管理器 * location shareobject manager * @author hengry */ public final class yfqian_SaveALoad { public static function set(key:String, value:String):String { LocalStorage.setItem(key,value); return value; } public static function get(key:String):String { return LocalStorage.getItem(key); } publi...

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

469. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 57%]

...deo播放视频 * @ author:xs * @ data: 2024-03-05 16:20 */ export default class VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("htt...

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

470. 我自己绘制的矩形如何以自身中心点旋转不能实现啊 [ 56%]

...display.Sprite; import laya.utils.Browser; import laya.webgl.WebGL; public class HelloLaya { public function HelloLaya() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,300,"#000fff"); Laya.stage.addChild(sp); s...

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