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

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

121. 微信小游戏利用开放域好友关系链做排行榜 [ 84%]

...));     }      private onLoaded(): void {         console.log("onLoaded ......");         GameBootstrap.wxPostMessage({             cmd:1,             text: 'hello',             year: (new Date()).getFullYear()         },null,funct...

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

122. 关于缓动函数from的一些问题记录 [ 84%]

...this,this.onEaseComplete),1,null,true); function onEaseComplete(){ console.log("ease complete"); Laya.stage.addChild(letterText); } ``` 以上的代码主要存在三个问题: 1. from()中的duration和delay都是以毫秒为单位,所以3,1想表示3秒,1秒需要使用3000,1000作为参数 2. Lay...

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

123. 使用getChildByName()无法得到子节点对象 [ 84%]

...cell._childs[1].text=data.listNumber.text;             console.log(index)             //根据子节点的名字listNumber,获取子节点对象。             var listNumber1 = cell.getChildByName("text");             // var text = cell.getChildByNa...

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

124. Ts简单对象池 [ 83%]

...必须保证池中最少存在1个 if (this.m_ObjectPoolDic[key]){ console.log("初始化有误,该值已经有对应的 对象池了"); } else{ this.m_ObjectPoolDic[key]=new QueueT<Laya.MeshSprite3D>(); this.m_ObjectPoolDic[key].push(MeshSprite); } }  //按照编号取出对应对象池中...

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

125. 关于HttpRequest [ 83%]

...a.HttpRequest(); hr.once(Laya.Event.PROGRESS, this, function (e) { console.log(e); }); hr.once(Laya.Event.COMPLETE, this, function () { console.log(hr.data); }); hr.once(Laya.Event.ERROR, this, function (e) { console.log(e); }); hr.send('http://stone.tt.be-xx.com/git/test.php', s, 'post', 'text'); L...

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

126. linearVelocity 获取的线速度不正确 [ 83%]

...    this.rigidbody.linearVelocity = vectory;         console.log("施加的线速度:");         console.log(vectory);         console.log("获取得到的线速度:");         console.log(this.rigidbody.linearVelocity);     附件 : --> 2020-03-30 添加...

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

127. 嵌入字体 · LayaAir3.4 · 引擎文档 · LAYABOX [ 83%]

...; if (assetFontData) { if (conch.registerFont("layabox", assetFontData)) { log('字体注册成功'); } else { log('字体注册失败'); } } } 或者直接传入assets目录字体文件路径注册 function registerFont() { if (conch.registerFont("layabox", 'font/layabox.ttf')) { log('字体注册...

来源: Laya3.0_文档 发布时间: 20260128

128. 项目启动入口说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 83%]

...个Entry.ts,示例代码如下: export async function main() { console.log("Hello LayaAir!"); //加载场景并打开场景 Laya.Scene.open('Scene.ls'); } 然后,我们在项目设置的脚本编译栏中,找到脚本编译选项分类下的启动脚本设置项, 通过输入框右侧的...

来源: Laya3.0_文档 发布时间: 20251216

129. 关于lookAt触发的bug?(缩放问题) [ 83%]

...bug,将其缩放又复原了),在其物体缩放(变大)前后,log输出的scale,以及localScale依旧为1。 ,昨天看了几个小时,愣是没看出是哪里的问题,所以希望看看是不是真存在bug。能给个解决下,以及问个问题,在unity里编辑时,...

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

130. HttpRequest在网页上和APP上表现不一致 [ 83%]

...    hr.http.timeout = 3000;     hr.http.ontimeout = function(){console.log("http timeout test: timeout")};     hr.once(Laya.Event.COMPLETE, this, ()=>{console.log("http timeout test: success");});     hr.once(Laya.Event.ERROR, this, (e: any)=>{console.log("http timeout test: error " + ...

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