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

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

101. protobuf TS中使用 [ 71%]

...使用proto中定义的enum? type.proto enum e_server_msg_type { e_mst_start_c2g = 300; e_mst_c2g_heartbeat = 301; //心跳协议 e_mst_c2g_select_gate = 302; //选择网关 e_mst_start_g2c = 400; e_mst_g2c_select_gate_result = 401;//选择网关返回 e_mst_g2c_send_msglist = 402;//发送协议...

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

102. 如何在laya中直接使用proto中定义的enum? [ 71%]

...使用proto中定义的enum? type.proto enum e_server_msg_type { e_mst_start_c2g = 300; e_mst_c2g_heartbeat = 301; //心跳协议 e_mst_c2g_select_gate = 302; //选择网关 e_mst_start_g2c = 400; e_mst_g2c_select_gate_result = 401;//选择网关返回 e_mst_g2c_send_msglist = 402;//发送协议...

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

103. 按钮拖动的bug [ 70%]

按钮拖动的bug startDrag这接口有这样一个参数说明: * @param elasticDistance (可选)橡皮筋效果的距离值,0为无橡皮筋效果,默认为0,可选。 但事实上,不管是不是显式写上默认值0,就都拖不了了。研究发现,这根本就是能拖动...

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

104. 编译时报错 [ 70%]

...:15] Using gulpfile D:\workspace\Test_2_5_1\.laya\compile.js   [16:24:15] Starting 'layacompile'...   [16:24:16] Finished 'layacompile' after 634 ms   [16:24:16] Starting 'compile'...   [16:24:16] 'compile' errored after 23 ms [16:24:16] Error: Invalid number at error (D:\tools\LayaAirIDE_beta2....

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

105. as3开发选分离模式,bin文件夹下并没有生成.scene文件,.scene文件在pages文件夹里。 [ 70%]

... 十六 • 2019-02-27 15:12 按了的,按了bin文件夹下才生成了Start.json以及ui文件夹下的StartUI文件,就是没有报错里面提示的bin路径下的Start.scene文件。而且打开场景用的是Scene.open("场景名.json")方法而不是Scene.open("场景名&qu...

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

106. unity用粒子做序列帧特效,unity里看正常,但laya预览的时候帧数却特别慢是为什么? [ 70%]

...aya_Aaron 赞同来自: 题主找到原因, 不是调速度 是调整了 Start Lifetime 以后速度就变了。。。 结帖。 2018-06-21 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个序列帧播放速度可以调整的。 2018-06-21 0 3 分享 微博 QZONE 微信 为什么被...

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

107. laya.d3.component.animation.UVAnimations [ 70%]

... : AnimationPlayer[read-only] 获取动画播放器。 KeyframeAnimations started : Boolean是否已执行start函数。Component3D templet : AnimationTemplet 获取动画模板。 KeyframeAnimations url : String[write-only] 设置url地址。 KeyframeAnimationsProtected Properties Hide Inherited...

来源: laya_api 发布时间: 20170603

108. bug,ChainCollider.points第二次设置,会报错! [ 69%]

...vate _chain; } /**开始游戏,通过激活本脚本方式开始游戏*/ startGame(): void { if (!this._started) { this._started = true; this.enabled = true; } var ground=this.owner.getChildByName("ground");            //****新增代码*****, ground.addComponent(Laya.ChainCollider);   ...

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

109. laya.d3.component.animation.CameraAnimations [ 69%]

... : AnimationPlayer[read-only] 获取动画播放器。 KeyframeAnimations started : Boolean是否已执行start函数。Component3D templet : AnimationTemplet 获取动画模板。 KeyframeAnimations url : String[write-only] 设置url地址。 KeyframeAnimationsProtected Properties Hide Inherited...

来源: laya_api 发布时间: 20170603

110. 这种进度条怎么实现? [ 69%]

...RCLE_WIDTH: number = 20 public $circleSprite: Sprite = new Sprite() public startY: number = -90 constructor() { super() this._init() } private _init() { this.cacheAs = "bitmap" this.size(this.DEF_SIZE,this.DEF_SIZE) this.pos(200,200) this.cacheAs = "bitmap" this.graphics.drawPie(this.DEF_SIZE >&g...

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