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

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

1501. image.skin = base64 无效 [ 69%]

...se64Img() { 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.addChild(sp); sp.pos(100, 100); drawToc(sp); } private function drawToc(sp:Sprite):void { var canvas:HTMLCanvas= sp.drawToCa...

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

1502. 聊天室存储数据 [ 69%]

...:String { return LocalStorage.getItem(key); } public static function del():void { LocalStorage.clear(); } public static function kill(key:String):void { LocalStorage.removeItem(key); } } } 本地数据存储 2018-07-22 0 1 分享 微博 QZONE 微信 seacole  赞同来自: localStorage.setItem("ke...

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

1503. laya.net.LoadTask_API3.0 [ 69%]

...f ILoadTask.uuid Defined in laya/net/Loader.ts:1060 Methods reset reset(): void Defined in laya/net/Loader.ts:1077 Returns void Globals "laya/net/Loader" LoadTask constructor ext loader obsoluteInst onComplete onProgress options progress type url uuid reset Loader ContentTypeMap DownloadItem ILoadOp...

来源: Laya3.0_api 发布时间: 20231115

1504. ios14系统下 图片异常 [ 69%]

...码版是BlendMode.ts 找到 static BlendAdd(gl: WebGLRenderingContext): void { WebGLContext.setBlendFunc(gl, gl.ONE, gl.DST_ALPHA,true); } 替换为: static BlendAdd(gl: WebGLRenderingContext): void { WebGLContext.setBlendFunc(gl, gl.ONE, gl.ONE,true); }      非源码版在laya.core.js里找...

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

1505. graphics持续绘制扇形问题 [ 69%]

graphics持续绘制扇形问题 private function onLoaded():void { //实例UI界面 var testView:TestPageUI = new TestPageUI(); Laya.stage.addChild(testView);   pie = new Sprite(); Laya.stage.addChild(pie); Laya.timer.frameLoop(1,this,onLoop); }   private var curAngle:Number = 0; private functio...

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

1506. 模拟鼠标事件 [ 69%]

...件 Laya.stage.on(Event.CLICK,this,onClick); } private function onClick():void { trace("test!"); } } } 2017-06-07 0 3 分享 微博 QZONE 微信 Playerdata1 赞同来自: 谢谢楼上的哥们回答 可惜不是我要的  我的问题是 不知道 在这个坐标上是否有按钮 也不知道具...

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

1507. Laya.Scene.open 中的complete参数如何取得场景实例? [ 69%]

...下是我写的typescript代码: class Main {     onConfigLoaded(): void {         //加载IDE指定的场景         var handler : laya.utils.Handler = laya.utils.Handler.create(this, this.onGetStartScene);         GameConfig.startScene && Laya.Scene.open(GameConfig.s...

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

1508. 区块地图-PerspectiveWall [ 69%]

...; Laya.stage.bgColor = "#232628"; this.createMap(); } private createMap(): void { this.tiledMap = new TiledMap(); this.tiledMap.createMap("../../res/tiledMap/perspective_walls.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); } } } new laya.TiledMap_PerspectiveWall();package { ...

来源: Laya_示例 发布时间: 20260303

1509. UI-Image [ 69%]

..._SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var dialog: Image = new Image("res/ui/dialog (3).png"); dialog.pos(165, 62.5); Laya.stage.addChild(dialog); } } } new laya.UI_Image();package { import laya.display.Stage; import laya.ui.Image; import laya.webgl.WebGL; ...

来源: Laya2.0_示例 发布时间: 20260303

1510. LayaBox二次开发 如何用到 activity的上下文对象Context [ 69%]

...写了一个Test类, public class Test { private Context context; public void init(final Context context) { this.context = context; } public void msg() { Log.d("layabox", "test"); Toast.makeText(context, "测试", Toast.LENGTH_SHORT).show(); } }该如何反射才能调到 msg 方法 2018-04-23 添...

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