大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0110 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...is: RenderSprite, sprite: Sprite, context: Context, x: number, y: number): void Defined in laya/filters/Filter.ts:38 Parameters this: RenderSprite sprite: Sprite context: Context x: number y: number Returns void Globals "laya/filters/Filter" Filter constructor _filter Legend Object literal Variable ...
来源: Laya3.0_api 发布时间: 20231115
...Result(); } /** * 加载完成 */ private onComplete(scene: Laya.Scene3D): void { this.scene = new Laya.Scene3D(); //将场景加到舞台上 this.scene = scene; Laya.stage.addChild(scene); //添加方向光 var directionlight: Laya.DirectionLight = scene.getChildByName( "Directional Light" ) as Lay...
来源: Laya_社区 发布时间: 20200917
...件,直接使用this.即可使用。例如下面的代码: onAwake(): void { // Button添加鼠标事件,让Image不显示 this.Button.on( Laya.Event.MOUSE_DOWN, this, ()=>{ this.Image.visible = false; }); } 运行此场景来看看效果,如动图2-7所示。 (动图2-7) UI组件脚...
来源: Laya3.0_文档 发布时间: 20251010
...Y轴位置。 DrawLinesCmdPublic Methods MethodDefined By recover():void 回收到对象池 DrawLinesCmdPublic Constants ConstantDefined By ID : String = DrawLines[static] DrawLinesCmdProperty DetaillineColorpropertypublic var lineColor:* 线段颜色,或者填充绘图的渐变对象。 ...
来源: Laya2.0_api 发布时间: 20190513
...ne():*[override] 克隆。 StaticPlaneColliderShape cloneTo(destObject:*):void 克隆。 ColliderShape updateLocalTransformations():void 更新本地偏移,如果修改LocalOffset或LocalRotation需要调用。 ColliderShapeConstructor DetailStaticPlaneColliderShape()Constructorpublic function Sta...
来源: Laya2.0_api 发布时间: 20190513
...ding,url,type,cache,group,ignoreCache,thisLoader,errorCode,data){ (cache===void 0)&& (cache=true); (ignoreCache===void 0)&& (ignoreCache=false); (errorCode===void 0)&& (errorCode=0); if (!errorCode){ var tempData; if (type==/*laya.net.Loader.JSON*/"json" || type==/*laya.net.L...
来源: Laya_社区 发布时间: 20180704
...nDown); Laya.stage.on(Event.MOUSE_UP,this,onUp); } private function onUp():void { Laya.stage.off(Event.MOUSE_MOVE,this,onMove); } private function onDown(e:Event):void { Laya.stage.on(Event.MOUSE_MOVE,this,onMove); } private function onMove():void { // 让sp跟随鼠标移动 sp.x=Laya.stage.mouseX;...
来源: Laya_社区 发布时间: 20170106
...t;RenderElement>, isTransparent: boolean, left: number, right: number): void Implementation of ISortPass.sort Defined in laya/d3/RenderObjs/RenderObj/QuickSort.ts:18 快速排序 Parameters elements: SingletonList<RenderElement> isTransparent: boolean left: number right: number Returns void...
来源: Laya3.0_api 发布时间: 20231115
...x/DawnDusk/SkyBox.lmat", Handler.create(null, function(mat:SkyBoxMaterial):void { //获取相机的天空盒渲染体 var skyRenderer:SkyRenderer = camera.skyRenderer; //设置天空盒mesh skyRenderer.mesh = SkyBox.instance; //设置天空盒材质 skyRenderer.material = mat; //设置场景的反...
来源: Laya2.0_文档 发布时间: 20210715
...) 创建一个 SkyDome 实例。 SkyDome _render(state:RenderContext3D):void[override] SkyDomeProperty Detailslicespropertyslices:int [read-only] 获取层数。 Implementation public function get slices():intstacksproperty stacks:int [read-only] 获取堆数。 Implementation ...
来源: Laya2.0_api 发布时间: 20190513