大约有 2,746 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0080 秒)
Laya_社区(1928) Laya3.0_api(248) Laya2.0_api(162) laya_api(132) Laya_示例(81) Laya2.0_文档(81) Laya2.0_示例(65) Laya3.0_文档(49)
...th Defined in laya/components/Component.ts:35 Static EMPTY EMPTY: Widget = null Defined in laya/components/Widget.ts:11 一个已初始化的 Widget 实例。 Accessors awaked get awaked(): boolean Inherited from Component.awaked Defined in laya/components/Component.ts:86 Returns boolean bottom get ...
来源: Laya3.0_api 发布时间: 20231115
...normalTexture = Texture2D.load(normalMapUrl[i]); } Laya.timer.frameLoop(1, null, function():void { monster1.transform.rotate(rotation); monster2.transform.rotate(rotation); }); } } }
来源: Laya_示例 发布时间: 20260303
...th Defined in laya/components/Component.ts:35 Static EMPTY EMPTY: Widget = null Defined in laya/ui/Widget.ts:12 一个已初始化的 Widget 实例。 Accessors awaked get awaked(): boolean Inherited from Component.awaked Defined in laya/components/Component.ts:86 Returns boolean bottom get bottom()...
来源: Laya3.0_api 发布时间: 20231102
...r.load(ApePath, Handler.create(this, setup)); } private function setup(e:*=null):void { normalizeApe(); makeRedApe(); grayingApe(); } private function normalizeApe():void { var originalApe:Sprite = createApe(); apeTexture = Laya.loader.getRes(ApePath); originalApe.x = (Laya.stage.width - apeTexture....
来源: Laya2.0_文档 发布时间: 20210715
...载url Laya.loader.load(url,Laya.Handler.create(this,this.showImg,[url]),null,Laya.Loader.IMAGE); } private showImg(url:string):void{ var t:Laya.Texture = Laya.loader.getRes(url); var ape:Laya.Sprite = new Laya.Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200,0); } ``...
来源: Laya2.0_文档 发布时间: 20210714
... Parameters Optional type: string (可选)事件类型,如果值为 null,则移除本对象所有类型的侦听器。 Returns EventDispatcher 此 EventDispatcher 对象。 offAllCaller offAllCaller(caller: any): EventDispatcher Inherited from EventDispatcher.offAllCaller Defined in laya/eve...
来源: Laya3.0_api 发布时间: 20231115
...oader来加载url Laya.loader.load(url, Handler.create(this,showImg,[url]),null,Loader.IMAGE); } private function showImg(url:String):void { var t:Texture = Laya.loader.getRes(url); var ape:Sprite = new Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200, 0); } ``` 第...
来源: Laya2.0_文档 发布时间: 20210714
...rotate(new Laya.Vector3(-15, 0, 0), true, false); this.camera.clearColor = null; //方向光 var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vecto...
来源: Laya_社区 发布时间: 20180820
... from "../Main"; export class Physics_Physics_Bridge { Main: typeof Main = null; private ecount = 30; private label: Label; constructor(maincls: typeof Main) { this.Main = maincls; Laya.Config.isAntialias = true; Laya.init(1200, 700, WebGL); Stat.show(); Physics.enable(); PhysicsDebugDraw.enable(); ...
来源: Laya2.0_示例 发布时间: 20260303
...pescript //3d场景加载 Laya.Scene3D.load("xx/xx.ls",Laya.Handler.create(null,function(scene){ //加载完成后,把加载回调中返回的完整场景scene添加到舞台 Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); /** ** 省略其它代码...
来源: Laya2.0_文档 发布时间: 20210714