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

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

251. 高低mesh地形,实用后解析会变慢 [ 53%]

...预加载 {url: "res/heightMap.png", clas:Texture2D, priority:1, params:[true]} 4,高度图的使用 5,最后记得把该模型隐藏掉 meshSprite3D.active = false; 158*****155 • 2017-05-02 20:52 @183*****755:生成png图片后,程序中怎么根据这张图片去获取高度

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

252. 请问如何给所有按钮点击事件增加一个音效 [ 53%]

...P、Event.CLICK</code> 事件侦听处理函数。          * @param e Event 对象。          */         protected function onMouse(e:Event):void {             if (toggle === false && _selected) return;             if (e.type === Event.CLICK) {  ...

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

253. laya.d3.core.particleShuriKen.ShurikenParticleMaterial [ 53%]

...子材质。 ShurikenParticleMaterial  onAsynLoaded(url:String, data:*, params:Array):void[override] private ShurikenParticleMaterial setShaderName(name:String):void 设置使用Shader名字。 BaseMaterialProtected Methods Show Inherited Protected Methods Show Inherited Protected Methods Method...

来源: laya_api 发布时间: 20170929

254. sharedCanvas现在在laya里面不能用了吗???急 在线等 [ 53%]

...接 提交 2 个回复 谢春 赞同来自: /** * 绘制开放域数据 * @param {*} layout 用来显示开放域数据的Sprite */ function drawOpenData(layout: Laya.Sprite) { clearDrawOpenData(layout); var sp: Laya.Sprite = new Laya.Sprite(); sp.width = layout.width; sp.height = layout.height; var...

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

255. skeleton的_onAniSoundStoped清除的时候有时会报undefined错误 [ 53%]

...时会报undefined错误 /** * @internal * 清掉播放完成的音频 * @param force 是否强制删掉所有的声音channel */ private _onAniSoundStoped(force: boolean): void { for (let len = this._soundChannelArr.length, i = 0; i < len; i++) { let channel = this._soundChannelArr[i]; if (chann...

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

256. 如何在IOS和Android中调用AS 类实例的方法 [ 53%]

...callMethod:jsObjId className:@"platform.PlatformAPI" methodName:methodName param:strValue], 运行时候报    reflection error : can not find class [platform.PlatformAPI]. 不知道原因。 className试了"PlatformAPI",也不可以   同时没有发现文档说明Android如何调动。谢谢 20...

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

257. 节点销毁问题 [ 52%]

...除子对象及从父节点移除自己。</p>          * @param destroyChild  (可选)是否同时销毁子节点,若值为true,则销毁子节点,否则不销毁子节点。   看截图无法确定这个this 是什么   remove 也会连子节点一起remove ,cocos 是...

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

258. 加载-销毁Texture使用的图片资源 [ 52%]

...vent.MOUSE_UP, this, this.onMouseUp); }; /** * 鼠标事件响应函数 * @param evt */ GameMain.prototype.onMouseUp = function (evt) { if (this.isDestroyed) { //通过设置 visible=true ,来触发渲染,然后引擎会自动恢复资源 this.spBg.visible = true; this.aniFly.visible = true; thi...

来源: Laya_示例 发布时间: 20260303

259. 如何使用TS的命名空间(namespace)? [ 52%]

...Command(){ //doSomething }; export interface ICommand{ excute(type:string, params:any):void; } }   2019-09-21 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 186*****180 相关问题 LayaAir3D UnityPlugin 使用须知-版本更新-问题...

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

260. Animator 如何获取当前所有动画名称呢?或者所有的AnimationClip呢? [ 52%]

...         * 通过播放名字获取动画片段。          * @param    playName 播放名字。          * @return 动画片段。          */         public function getClip(playName:String):AnimationClip {             var index:int = _clipNames.indexOf(pl...

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