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

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

331. 多线程worker(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 46%]

...//加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例UI界面 var testView = ui.test.TestPageUI(); Laya.stage.addChild(testView); } ``` `WorkerLoader.workerPath = "libs/worker.js";`设置worker.js的路径,这个wor...

来源: Laya2.0_文档 发布时间: 20210715

332. 我浏览在线文档 关于共享材质和自身材质的代码 貌似没有什么不同? [ 46%]

... Laya.loader.create("LayaScene_01/Assets/model/loveScene_jianzhu.lm",Laya.Handler.create(this,this.onCreateComplete)); //预加载完成后回调 private onCreateComplete():void { //创建预加载的模型网格 var mesh:Laya.Mesh = Laya.loader.getRes("LayaScene_01/Assets/model/loveScene_jianzhu.lm...

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

333. laya.ui.UIComponent_API3.0 [ 46%]

...ponent.ts:281 鼠标悬停提示。 可以赋值为文本 String 或函数 Handler ,用来实现自定义样式的鼠标提示和参数携带等。 example private var _testTips:TestTipsUI = new TestTipsUI(); private function testTips():void { //简单鼠标提示 btn2.toolTip = "这里是鼠标...

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

334. laya.ui.UIGroup_API3.0 [ 46%]

...ics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name selectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed direction disable...

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

335. Cannot read property 'rayCast' of undefined [ 45%]

...ite3D.load("res/scene/LayaScene_webgl_sky/Conventional/webgl_sky.lh", Laya.Handler.create(this, this.onLoadFinish)); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); } onLoadFinish(layaMonkey){ this.layaMonkey=this.scene.addChild(layaMonkey); // Laya.timer.frameLoop(1, this, this.onFrameL...

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

336. 多线程worker(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 45%]

...//加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例UI界面 var testView:ui.test.TestPageUI = new ui.test.TestPageUI(); Laya.stage.addChild(testView); } } new LayaUISample; ``` `WorkerLoader.workerPath = ...

来源: Laya2.0_文档 发布时间: 20210715

337. 关联shader的uniform(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 45%]

...men/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { //设置猴子 var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Qu...

来源: Laya2.0_文档 发布时间: 20210715

338. laya.resource.Texture2D_API3.0 [ 45%]

...lock=true的资源。 Returns void Static load load(url: string, complete: Handler): void Defined in laya/resource/Texture2D.ts:240 加载纹理 Parameters url: string 路径 complete: Handler 处理时间 Returns void Globals "laya/resource/Texture2D" Texture2D constructor _id destroyedImmediately ...

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

339. laya.ui.ScaleBox_API3.0 [ 45%]

...ponent.ts:281 鼠标悬停提示。 可以赋值为文本 String 或函数 Handler ,用来实现自定义样式的鼠标提示和参数携带等。 example private var _testTips:TestTipsUI = new TestTipsUI(); private function testTips():void { //简单鼠标提示 btn2.toolTip = "这里是鼠标...

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

340. laya.d3.core.pixelline.PixelLineSprite3D_API3.0 [ 45%]

... Returns Sprite3D 克隆实例。 Static load load(url: string, complete: Handler): void Inherited from RenderableSprite3D.load Defined in laya/d3/core/Sprite3D.ts:77 加载网格模板。 Parameters url: string 模板地址。 complete: Handler 完成回掉。 Returns void Globals "laya/d3/core/pix...

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