大约有 1,614 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0052 秒)
Laya_社区(1206) Laya2.0_文档(194) Laya_示例(55) Laya3.0_api(49) Laya2.0_示例(43) Laya3.0_文档(42) Laya2.0_api(13) laya_api(12)
... Laya.loader.load("http://10.144.1.20:8081/files/ ... ot%3B, Handler.create(this, function (): void { var t: Texture = Laya.loader.getRes("http://10.144.1.20:8081/files/ ... 6quot;); var ape: Sprite = new Sprite(); ape.graphics.drawTexture(...
来源: Laya_社区 发布时间: 20170831
...ad_img:头像的url路径 head_img.loadImage(data.head_img, Laya.Handler.create(head_img, function () { this.height = this.width = 77; var cMask = new Laya.Sprite();//创建遮罩对象 var r = 38.5; //遮罩圆形半径 cMask.graphics....
来源: Laya_社区 发布时间: 20181119
...: Laya.loader.load("RenderTexture.rendertexture", null, Laya.Handler.create(this, null, null, false)).then(() => { this.spRole.texture = Laya.loader.getRes("RenderTexture.rendertexture"); //设置纹理的宽高为舞台大小,这样才不会拉伸变形 this.spRole.texture.sourceWidth = L...
来源: Laya_社区 发布时间: 20250109
...时,发现一个奇怪的问题: Laya.loader.load(resUrl, Laya.Handler.create(this, function (res) { //解析题目 log(res); //放置方块 }), null, Laya.Loader.JSON); } 代码运行到这老是报错,报错原因是有不认识的字符,我想了下,resUrl指向的是本地的一...
来源: Laya_社区 发布时间: 20200311
... Laya.Scene3D.load("LayaScene_scene1/Conventional/scene1.ls", Laya.Handler.create(this, function (s: Laya.Scene3D): void { var scene = s; Laya.stage.addChild(scene); })); 加载代码 2019-03-13 0 0 分享 微博 QZONE 微信 Zong 赞同来自: 断点调试显示clip.version = "LA...
来源: Laya_社区 发布时间: 20190313
...建动画控制器 在unity资源管理器中,右键点开菜单创建(Create)动画控制器(Animator Controller),并根据动画取名,本例中取名为"LayaMonkeyController"。 (图2) #### 编辑动画控制器 双击打开动画控制器,视图区会出现动画控...
来源: Laya2.0_文档 发布时间: 20210715
... 这里的按钮,可以用 this.btn.clickHandler = laya.utils.Handler.create(this,this.方法,["你要传的参数"],false); 2018-08-28 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Try everything___ 相关问题 发起问题须知...
来源: Laya_社区 发布时间: 20180828
...舞台 Laya.loader.load([this.monkey1,this.monkey2],Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ //创建一个实例 this.img = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(this.img); //显示初始化绘制的图片 th...
来源: Laya_社区 发布时间: 20180226
...用就挂…… Laya.Scene3D.load("LayaScene_Map/Map.ls",Laya.Handler.create(null,function(scene){ //加载完成获取到了Scene3d Laya.stage.addChild(scene); })); 附件 : --> LayaScene_Map.zip 2020-07-07 添加评论 免费帖 --...
来源: Laya_社区 发布时间: 20200707
... //加载场景 Scene3D.load('LayaScene_test/Conventional/test.ls',Handler.create(this,onComplete)) } /** * 加载完成 */ private function onComplete(scene:Scene3D):void{ // 将场景加到舞台上 Laya.stage.addChild(scene); } } } ``` 运行效果(图2): (图2)
来源: Laya2.0_文档 发布时间: 20210715