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

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

1. 关于2.1.0代码设计的疑问 [ 100%]

...1.0版本 Vector3 的疑问 如下:2.1.0的Vector3 /**@private */ public static const _ZERO:Vector3 =/*[STATIC SAFE]*/ new Vector3(0.0, 0.0, 0.0); /**@private */ public static const _ONE:Vector3 =/*[STATIC SAFE]*/ new Vector3(1.0, 1.0, 1.0); /**@private */ public static const _NegativeUnitX:Vector...

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

2. swf预加载问题 [ 80%]

...a.utils.Handler; public class BeforLoader extends EventDispatcher { public static const BEFORLOADERFINISH:String = "BeforLoaderFinish"; private const ADDONE:String = "bingan/AddOne.swf"; private const BG:String = "bingan/bg.swf"; private const CDOWNBIN:String = "bingan/cDownBin.swf"; private const C...

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

3. 编译常量问题 [ 78%]

...//北京时间东八区,故服务器时间要加多八小时   public static const TIME_ZONE:Number = 8*60*60*1000;   /**    * 一天    */   public static const ONE_DAY2:Number = 24 * 60 * 60 * 1000; //  ONE_DAY  可能系统重名   在运行时发现 var millSec:Number = (ServiceTi...

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

4. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 74%]

...import laya.maths.Rectangle; public class CdSprite extends Sprite { public static const START:int = -90; public static const COLOR:String = "#000000"; private var r:Number = BarCell.WID / Math.SQRT2; private var rect:Rectangle = new Rectangle(0,0,BarCell.WID,BarCell.WID); private var pos:int = BarCe...

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

5. 分享一个Shader版的CoolDown实现 [ 72%]

...前着色器的一个实例对象。          */         public static shader: coolDownShader = new coolDownShader();         constructor() {             var vs: string = " \             attribute vec2 position; \             attribute vec2 texcoord; \           ...

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

6. 扇形遮罩画不全画了一个很奇怪的形状但是矩形的就没问题。显示效果如下:版本号1.7.10 [ 66%]

...         public var spSize:Size;                  public static var PROGRESS_TIMER_TYPE_RADIAL:String = "PROGRESS_TIMER_TYPE_RADIAL"         public static var PROGRESS_TIMER_TYPE_RECT:String = "PROGRESS_TIMER_TYPE_RECT"         public function ProcessTimer(size:Size)  ...

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

7. 怎么获取完全限定类名,就像as的getQualifiedClassName [ 64%]

...信 宇智波 旋 赞同来自: /**返回指定对象的完全限定名 */ static getQualifiedClassName(value):string { var type = typeof value; if (!value || (type != "object" && !value.prototype)) { return type; } var prototype = value.prototype ? value.prototype : Object.getPrototypeOf(va...

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

8. 2.3.0beta 各种bug [ 57%]

...return this._style;         }     core.js vivo下getJSON报错兼容 static getJSON(key) {                         if(Storage.support){                 var obj = Storage.items.getItem(key);                 if(obj){                     return  JSON.parse(o...

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

9. 微信小游戏提审后,提示说代码侵权 [ 53%]

...(var i=0; i<arr.length; i++){ let str = arr[i]; if(str.indexOf("private static") != -1) continue; if(str.indexOf("private async") != -1) continue; if(str.indexOf("private get") != -1) continue; if(str.indexOf("private set") != -1) continue; if(str.indexOf("= new ") != -1) continue; //过滤这种...

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

10. 1.0 骨骼drawcall优化猥琐方法 [ 52%]

...法只传对submit设置的值          */         public static function createSubmit(context:WebGLContext2D, ib:IndexBuffer2D, vb:VertexBuffer2D, pos:int, sv:Value2D):Submit {             var o:Submit = _cache._length ? _cache[--_cache._length] : new Submit();     ...

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