• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,595 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0071 秒)

181. 不带格式后缀的图片无法成功加载 [ 76%]

...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

182. 发射射线检测不到,物体有包围盒 [ 76%]

...               //     lv.addChild(sp);             //     console.log("添加预制体");             // }));               self.camera = scene3d.getChildByName("--- ENVIRONEMENT ---").getChildByName("Main Camera");                         self.scene = scen...

来源: Laya_社区 发布时间: 20220506

183. 用npm的protobuf导出的ts代码。然后用import { } from "" 运行到这里没反应,不继续执行,也不报错。 [ 76%]

...{ 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

184. 关于类中方法的调用 [ 76%]

...Child(m_talkScroll); // this.onAction(); // this.onAction = function(){ // console.log("-------------hhhhhhhhhhh "); // } //第一种解决方法 onAction(); function onAction(){ console.log("这是第一种解决方法"); } //第二种解决方法 this.onAction(); } Laya.class(NpcLayer,"NpcLayer",_...

来源: Laya_社区 发布时间: 20171127

185. 在 tiledmap 插入一个精灵在上面 [ 76%]

...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

186. 在加载多个资源的时候,加载进度异常 [ 76%]

...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

187. 排行榜上的玩家头像绘制问题 [ 75%]

...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

188. laya3d物体碰撞与触发检测的问题 [ 75%]

...Move extends Laya.Script {  constructor() { super(); } onTriggerEnter() { console.log("111"); } onTriggerStay() { console.log("111"); } onTriggerExit() { console.log("111"); } onEnable() { }  onDisable() { } } //这是两个类,直接可以就不会发生触发效果,什么都不输出,还...

来源: Laya_社区 发布时间: 20190314

189. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 75%]

...MeshSprite3D) == null || !this.isUseOuline){            // console.log('spreite3D node meshSprite3D is null');            return;         }         var unlitMaterial = new Laya.UnlitMaterial();         unlitMaterial.albedoColor = new Laya...

来源: Laya_社区 发布时间: 20210203

190. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 75%]

...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