大约有 197 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0054 秒)
Laya_社区(154) Laya2.0_文档(17) Laya3.0_文档(10) Laya3.0_api(10) Laya2.0_api(2) laya_api(2) Laya_示例(1) Laya2.0_示例(1)
...reate(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); ...
来源: Laya_社区 发布时间: 20171201
...1715 关注: 2 人 ludwig • 2017-01-09 13:52 谢谢 应邀 我在用load.getres这一步读取小图这步 案例是把这个值放到了texture中,js中是不是也要把这个值赋给sprite
来源: Laya_社区 发布时间: 20170109
...372 • 2017-08-02 22:58 我最后在销毁后使用clearRes,之后再以getRes方式加载给sprite3D,发现这个方法没有问题
来源: Laya_社区 发布时间: 20170802
...化加载并创建好的3D对象var sprite3D:Laya.Sprite3D = Laya.loader.getRes("res/room.lh");this.scene.addChild(sprite3D);} 2018-09-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 130*****543 相关问题 unity导出粒子文件问...
来源: Laya_社区 发布时间: 20180817
...his, function () { _this.graphics.clear() var texture = window.Laya.loader.getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _this.pivotX = _this.row_data.property.x_m * texture.sourceWidth _this.pivotY = _this.row_data.property.y_m * texture....
来源: Laya_社区 发布时间: 20180530
...D使用lh资源文件的问题 var plane = this.scene.addChild(Laya.loader.getRes("res/LayaScene_plane/plane.lh")) as Laya.Sprite3D; 这样可以根据一个lh文件 来创建一个Sprite3D类型的对象。 那么请问,如果我写了一个类A,并继承与Laya.Sprite3D 我要怎么在类的...
来源: Laya_社区 发布时间: 20180227
...。 ```typescript onComplete() { //获取资源 var testJosn = Laya.loader.getRes("json/reward.json"); //输出透传过来的json console.log('透传的json信息:', testJosn); //加载IDE指定的场景 var big = new BigRank(); big.init(); } ``` 微信环境下测试,效果如图1: :void() { //获取资源 var testJosn:* = Laya.loader.getRes("json/reward.json"); //输出透传过来的json console.log('透传的json信息:', testJosn); //加载IDE指定的场景 var big:BigRank = new BigRank(); big.init(); } ``` 微信环境下测试,效果如图1: !...
来源: Laya2.0_文档 发布时间: 20210715
...。 ```typescript onComplete() { //获取资源 var testJosn = Laya.loader.getRes("json/reward.json"); //输出透传过来的json console.log('透传的json信息:', testJosn); //加载IDE指定的场景 var big = new BigRank(); big.init(); } ``` 微信环境下测试,效果如图1: ![](img/1...
来源: Laya2.0_文档 发布时间: 20210715