大约有 828 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)
Laya_社区(538) Laya2.0_文档(154) Laya_示例(51) Laya2.0_示例(43) Laya3.0_api(23) Laya3.0_文档(17) laya_api(1) Laya2.0_api(1)
...件。我把全部源码贴出来吧 package { import laya.utils.Handler; import laya.display.Text; import laya.display.Animation; import laya.webgl.WebGL; import laya.media.Sound; import laya.webgl.shapes.Ellipse; import laya.display.Stage; ...
来源: Laya_社区 发布时间: 20170921
...t android.content.Intent; import android.os.Environment; import android.os.Handler; import android.os.Looper; import android.os.Message; import android.util.Log; import org.json.JSONException; import org.json.JSONObject; import java.util.ArrayList; import demo.MainActivity; import layaair.game.brows...
来源: Laya_社区 发布时间: 20170722
...调方法绘制图片并添加到舞台 Laya.loader.load(this.monkey2,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var img = new Laya.Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(this.monkey2),100,50); //添加到舞台 Laya.stage.ad...
来源: Laya_社区 发布时间: 20170825
...ayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this,onLoadedMap)); } private var sp:Sprite; private function onLoadedMap():void { var mapLayer:MapLayer=tiledMap.getLayerByIndex(2); sp=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); sp.z...
来源: Laya_社区 发布时间: 20170525
... 赞同来自: 龙印 已经解决:: Laya.loader.load("ani/jingbubeipi.sk",Handler.create(this,asd),null,Loader.BUFFER); 在预加载动画时这样在后面参数加上loader.buffer; 2018-09-13 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...
来源: Laya_社区 发布时间: 20180913
...ion;Laya.Tween.to(box.potOld,{ x:1 ,y:2 ,update:new Laya.Handler(box,function(){ this.transform.position = this.potOld; }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){ console.log("complete"); }),ConstValue.animation...
来源: Laya_社区 发布时间: 20170630
...默认程序,编写代码如下: ```java package { import laya.utils.Handler; import laya.webgl.WebGL; //导入UI发布生成的类 import ui.ComponentDemoUI; public class ComponentDemo { /**包含tab与viewStack组件的测试页面**/ private var comp:ComponentDemoUI; public function Component...
来源: Laya2.0_文档 发布时间: 20210715
...00); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //实例化Panel组件 var panel: Laya.Panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设...
来源: Laya2.0_文档 发布时间: 20210715
...ype:Loader.BUFFER }); // Laya.loader.load(assets, Handler.create(this, onAssetLoaded)); onAssetLoaded(); } 顺便问一下 你们的对于小图加载会自动加入大图集中去,一张满了就再加一张,这个大图集的重建是...
来源: Laya_社区 发布时间: 20160902
...l; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private on3DComplete():void{ //创建3D角色 //实例化角色 this.role = Laya.loader.getRes("res/LayaScene_girl/girl.lh"); this.scene.addChild(this....
来源: Laya_社区 发布时间: 20180307