大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0074 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...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
...: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
...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
...码版是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
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
...件 Laya.stage.on(Event.CLICK,this,onClick); } private function onClick():void { trace("test!"); } } } 2017-06-07 0 3 分享 微博 QZONE 微信 Playerdata1 赞同来自: 谢谢楼上的哥们回答 可惜不是我要的 我的问题是 不知道 在这个坐标上是否有按钮 也不知道具...
来源: Laya_社区 发布时间: 20170607
...下是我写的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
...; 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
..._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
...写了一个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