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

大约有 242 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0046 秒)

121. 回调函数... [ 62%]

回调函数... constructor(){ Laya.loader.load(this.skins, Handler.create(this, this.onUIAssetsLoaded)); } aaa() { } function onUIAssetsLoaded( this.aaa();//为什么回调函数不能调用,undefined } 2017-06-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

122. 音频解码一直遇到这个问题呢,不知道什么原因 [ 62%]

...mo吧。 smile • 2018-05-31 17:36 @Laya_Aaron: Laya.loader.load(assetArr,Handler.create(this,this.gameStart),Handler.create(this,onProgress,null,false)); private var assetArr:Array=[ {url:"sound/bgMusic.mp3", type:Loader.SOUND}, {url:"sound/button.mp3", type:Loader.SOUND}, {url...

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

123. 关于tiledmap.moveViewPort动画问题 [ 62%]

...ya_Aaron 赞同来自: Tween.to(this,{x:40,y:50,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onUpdate)}) 大概长这个样子 2018-07-06 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 如果会用tween 就好办,  tween 里面有个 update 回调,...

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

124. 多光源渲染(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 62%]

...load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(...

来源: Laya2.0_文档 发布时间: 20210715

125. 多光源渲染(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 62%]

...load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(...

来源: Laya2.0_文档 发布时间: 20210715

126. TextureCube. setSixSideImageSources () [ 62%]

...;LayaScene_6/Conventional/Assets/New Folder/qiu2_NegativeX.png", Laya.Handler.create(null, (tex) => { var _textureCube = new Laya.TextureCube(); var img:Laya.Image = new Laya.Image(); img.texture=tex; _textureCube.setSixSideImageSources([ img, img, img, img, img, img ]); var skyM = new Laya....

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

127. 从Unity中编辑并导出摄像机(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 62%]

...ort laya.d3.core.scene.Scene; import laya.display.Stage; import laya.utils.Handler; import laya.utils.Stat; public class LayaAir3D { public function LayaAir3D() { //初始化引擎 Laya3D.init(1000, 500,true); //适配模式 Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCRE...

来源: Laya2.0_文档 发布时间: 20210715

128. 播放一首歌曲指定从一个时间点开始播放 无效。 [ 62%]

...同来自: soundchannel=SoundManager.playMusic(SongsData.getRrlSound(), 1, Handler.create(this, onCompleteHd), SongsData.starttime); 2019-04-24 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Yangcy 相关问题 两个对象new了一个...

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

129. 如何获取动画长度? [ 62%]

...使用加载完回调还是获取不到   tl.loadAnimation("s.ani", Laya.Handler.create(this, () => { var bounds = tl.getGraphicBounds(); console.log(bounds.width) }, [tl]));   还是0 2018-01-24 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录...

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

130. Laya.loader.load 加载时长10秒,progress 回调只会调用一次,0.2就再也不会被调用到了。为什么啊 [ 61%]

...复 Monica - 知识达人 赞同来自: 加载进度回调你是用Handler.create吗?如果是话需要设置create里边最后一个参数为false 2017-09-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 185*****367 相...

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