大约有 1,595 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0071 秒)
...aya.Handler.create(this, () => { let picTemp = Laya.Loader.getRes(url); console.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 nodee.x = 100 nodee.y = 350 Laya.stage.addChild(nodee) }));上面这个图片无法正常显...
来源: Laya_社区 发布时间: 20211026
... // lv.addChild(sp); // console.log("添加预制体"); // })); self.camera = scene3d.getChildByName("--- ENVIRONEMENT ---").getChildByName("Main Camera"); self.scene = scen...
来源: Laya_社区 发布时间: 20220506
...{ com} from "../libs/protobuf/area.js"; export function testProto():void { console.log("call testProto"); var ProtobufUtil = com.bee.protobuf; let msg = ProtobufUtil.ProtoArea.create(); let buffer = ProtobufUtil.ProtoArea.encode(msg).finish(); let decode = ProtobufUtil.ProtoArea.decode(buffer); cons...
来源: Laya_社区 发布时间: 20171115
...Child(m_talkScroll); // this.onAction(); // this.onAction = function(){ // console.log("-------------hhhhhhhhhhh "); // } //第一种解决方法 onAction(); function onAction(){ console.log("这是第一种解决方法"); } //第二种解决方法 this.onAction(); } Laya.class(NpcLayer,"NpcLayer",_...
来源: Laya_社区 发布时间: 20171127
...vate tiledMap: Laya.TiledMap; private sp:Laya.Sprite; constructor(){ console.info("start"); this.init(); } init():void{ Laya.init(800, 700, Laya.WebGL); Laya.loader.load("res/atlas/images.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); } onLoaded(){ conso...
来源: Laya_社区 发布时间: 20171125
...create(this, function(){ }), Laya.Handler.create(this, function(e){ console.log(e) } , Laya.Loader.ATLAS); 此时进度e的值只有一个数0.41 ,不会从0到1,这是什么原因? 2018-01-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20180101
...t;undefined") { friendRankList.destroy(); delete (friendRankList); // console.log(friendRankList); } friendRankList = new FriendRankListView(); // friendRankList.visible =false Laya.stage.addChild(friendRankList); var dataT = []; data.forEach((item, index) => { // console.log(item) var cupIm...
来源: Laya_社区 发布时间: 20180516
...Move extends Laya.Script { constructor() { super(); } onTriggerEnter() { console.log("111"); } onTriggerStay() { console.log("111"); } onTriggerExit() { console.log("111"); } onEnable() { } onDisable() { } } //这是两个类,直接可以就不会发生触发效果,什么都不输出,还...
来源: Laya_社区 发布时间: 20190314
...MeshSprite3D) == null || !this.isUseOuline){ // console.log('spreite3D node meshSprite3D is null'); return; } var unlitMaterial = new Laya.UnlitMaterial(); unlitMaterial.albedoColor = new Laya...
来源: Laya_社区 发布时间: 20210203
...ish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)) { console.log("hittttttt"); } }); } } //程序入口 Laya.init(600, 400); this.onLoaded() function onLoaded()...
来源: Laya_社区 发布时间: 20180315