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

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

1671. laya.d3.animation.AnimationTransform3D [ 65%]

...自动移除。 EventDispatcher  setParent(value:AnimationTransform3D):void 设置父3D变换。 AnimationTransform3DProperty DetaillocalRotationpropertylocalRotation:Quaternion Implementation     public function get localRotation():Quaternion    public function set localRotation(value:Qua...

来源: Laya2.0_api 发布时间: 20190513

1672. laya.display.Graphics [ 65%]

...:AlphaCmd 设置透明度。 Graphics  clear(recoverCmds:Boolean = true):void 清空绘制命令。 Graphics  clipRect(x:Number, y:Number, width:Number, height:Number):ClipRectCmd 设置剪裁区域,超出剪裁区域的坐标不显示。 Graphics  destroy():void 销毁此对象。 Graphics...

来源: Laya2.0_api 发布时间: 20190513

1673. drawTexture 画出来的数据会有以前的数据 [ 65%]

...ild(img); btn.on(Event.CLICK,this,runGame1); } private function runGame1():void { xNum = Math.random()*7 - 3; yNum = Math.random()*7 - 3; Laya.timer.loop(20,this,onRun); Laya.timer.frameLoop(10,this,refresh); } private function refresh():void { IconSpr.graphics.clear(); iconSpr.graphics.clear(); if(...

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

1674. laya.d3.core.particleshuriken.module.TextureSheetAnimation_API3.0 [ 65%]

...77 克隆。 Returns any 克隆副本。 cloneTo cloneTo(destObject: any): void Defined in laya/d3/core/particleShuriKen/module/TextureSheetAnimation.ts:60 克隆。 Parameters destObject: any 克隆源。 Returns void Globals "laya/d3/core/particleShuriKen/module/TextureSheetAnimation" TextureSheet...

来源: Laya3.0_api 发布时间: 20231115

1675. laya.maths.Matrix [ 65%]

...x[static] 从对象池中创建一个 Matrix 对象。 Matrix  destroy():void 销毁此对象。 Matrix  getScaleX():Number 获取 X 轴缩放值。 Matrix  getScaleY():Number 获取 Y 轴缩放值。 Matrix  identity():Matrix 将本矩阵设置为单位矩阵。 Matrix  invert():Matrix ...

来源: Laya2.0_api 发布时间: 20190513

1676. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 65%]

...       return this.instance;     }      public init(): void {         //使用之前必须先初始化          if(this.camera == null){             BlurEffect.init();             this.camera = InsManager.GetInstance()._SceneManager.pl...

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

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

...写的,点击2次场景就会报错。: onStageClick(e: Laya.Event): void { //停止事件冒泡,提高性能,当然也可以不要 e.stopPropagation(); //舞台被点击后,使用对象池创建子弹 let flyer: Laya.Sprite = Laya.Pool.getItemByCreateFun("bullet", this.bullet.create, this...

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

1678. 在最新的IOS14上,UI的lighter模式渲染不正确,背景是黑色的,无法实现透明 [ 65%]

...码版是BlendMode.ts 找到 static BlendAdd(gl: WebGLRenderingContext): void { WebGLContext.setBlendFunc(gl, gl.ONE, gl.DST_ALPHA,true); } 替换为: static BlendAdd(gl: WebGLRenderingContext): void { WebGLContext.setBlendFunc(gl, gl.ONE, gl.ONE,true); }      非源码版在laya.core.js里找...

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

1679. 高级应用-实时阴影 [ 65%]

...create(this, this.onComplete)); Laya.timer.frameLoop(1, this, function (): void { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, this._quaternion); var _direction: Laya.Vector3 = directionLight.direction; Laya.Vector3.transformQuat(_direction, this._quaternion, _direction); directionLight.direc...

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

1680. 将一个Number类型的变量赋给一个int型变量,转换后为何没有自动取整呢? [ 65%]

...int = 2340923944589; transfrom(num); public function transfrom(value:uint):void { trace(value); } 兼容H5写法:  var num:int = 2340923944589; transfrom(num); public function transfrom(value:uint):void { trace(uint(value)); } (3)、除法运算取整描述:    和Number赋值int同理,...

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