大约有 4,338 项符合查询结果, 库内数据总量为 30,789 项。 (搜索耗时: 0.0246 秒)
Laya_社区(2450) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(25)
...,建议用脚本方 */ public class GameUI extends TestSceneUI { public function GameUI():void { super(); //加载场景 Scene3D.load('LayaScene_test/Conventional/test.ls',Handler.create(this,onComplete)) } /** * 加载完成 */ private function onComplete(scene:Scene3D):void{ // 将场景加到...
来源: Laya2.0_文档 发布时间: 20210715
...ya.resource.Texture; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(600, 800); //加载引擎需要的资源 Laya.loader.load([{url:"res/atlas/atlas_res.json",type:Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void...
来源: Laya_社区 发布时间: 20160707
... sp[j + i * 10].on(Laya.Event.MOUSE_OUT, this, out); } } function over(e) { e.target.graphics.drawRect(0, 0, 50, 50, "red"); } function out(e) { //正常大家可能会这么写,但是运行之后是无效的,因为e.target可能变成stage或者null,也可能是...
来源: Laya_社区 发布时间: 20160715
...s Defined in laya/d3/RenderObjs/NativeOBJ/NativeBaseRenderQueue.ts:19 sort function Accessors context set context(value: RenderContext3D): void Defined in laya/d3/RenderObjs/NativeOBJ/NativeBaseRenderQueue.ts:36 Parameters value: RenderContext3D Returns void sortPass set sortPass(value: ISortPass): ...
来源: Laya3.0_api 发布时间: 20231115
...ortPass Defined in laya/d3/RenderObjs/RenderObj/BaseRenderQueue.ts:17 sort function Accessors context set context(value: RenderContext3D): void Defined in laya/d3/RenderObjs/RenderObj/BaseRenderQueue.ts:32 Parameters value: RenderContext3D Returns void sortPass set sortPass(value: ISortPass): void D...
来源: Laya3.0_api 发布时间: 20231115
...ying 已解决,当destroy函数调用时会把子节点销毁,所以public function get numChildren(){} 被调用时child为空 所以报错,算是引擎的bug吧,将原函数改为public function get numChildren():int { trace(this); if (!this._childs){ ...
来源: Laya_社区 发布时间: 20170829
...3D.load("res/LayaScene_game/Conventional/game.ls",Laya.Handler.create(null,function(scene3d){ // HelperApp.a = scene3d; //加载完成获取到了Scene3d scene3d.name = 'good'; self.owner.addChild(scene3d); v...
来源: Laya_社区 发布时间: 20220506
...源对应的移动半径数组 public var moveRanges: Array = []; public function onUpdate(): void { var seed: Number = Laya.timer.currTimer * 0.002; for (var i: int = 0, n: Number = this.lights.length; i 加载场景,并且添加多光源 ```typescript Scene3D.load("res/threeDimen/scene/MultiLigh...
来源: Laya2.0_文档 发布时间: 20210714
...ort laya.ui.Image; import laya.webgl.WebGL; public class UI_Image { public function UI_Image() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV = Stage.ALIGN_MIDDLE; //画布水平居中对齐 Laya.stage.alignH = Stage.ALIGN_CENTER;...
来源: Laya2.0_文档 发布时间: 20210714
...hat your app or its metadata enables the purchase of content, services, or functionality in the app by means other than the in-app purchase API, which is not appropriate for the App Store. Next Steps While the payment system that you have included may conduct the transaction outside of the app, if t...
来源: Laya_社区 发布时间: 20180414