大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0082 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...自动移除。 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
...: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
...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
...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
...x[static] 从对象池中创建一个 Matrix 对象。 Matrix destroy():void 销毁此对象。 Matrix getScaleX():Number 获取 X 轴缩放值。 Matrix getScaleY():Number 获取 Y 轴缩放值。 Matrix identity():Matrix 将本矩阵设置为单位矩阵。 Matrix invert():Matrix ...
来源: Laya2.0_api 发布时间: 20190513
... return this.instance; } public init(): void { //使用之前必须先初始化 if(this.camera == null){ BlurEffect.init(); this.camera = InsManager.GetInstance()._SceneManager.pl...
来源: Laya_社区 发布时间: 20210203
...写的,点击2次场景就会报错。: onStageClick(e: Laya.Event): void { //停止事件冒泡,提高性能,当然也可以不要 e.stopPropagation(); //舞台被点击后,使用对象池创建子弹 let flyer: Laya.Sprite = Laya.Pool.getItemByCreateFun("bullet", this.bullet.create, this...
来源: Laya_社区 发布时间: 20181130
...码版是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
...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
...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