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

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

351. ls文件导入错误 [ 72%]

...在unity导出一个文件,然后layabox中加载场景。 Laya.loader.create(this.strScene, Laya.Handler.create(this, this.onLoadScene)); private onLoadScene() { var scene: Laya.Scene = Laya.Scene.load(this.strScene); if (scene == null) { return; } this.mScene = scene;   大致的流程如上  ...

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

352. 定时器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

...: Function, args: any[] = null, coverBefore: boolean = true): void { this._create(true, false, delay, caller, method, args, coverBefore); } 使用示例如下: const { regClass } = Laya; import { RuntimeScriptBase } from "./RuntimeScript.generated"; @regClass() export class RuntimeScript extends R...

来源: Laya3.0_文档 发布时间: 20251010

353. 3D场景环境设置 · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

...//加载相机天空盒材质 Laya.Material.load("sky2.lmat", Laya.Handler.create(null, function(mat: any) { //修改天空盒渲染器的天空盒材质 skyRenderer.material = mat; })); 2.3 IDE中创建天空盒 2.3.1 更改IDE默认的球形天空盒 当我们用IDE场景一个3D场景时,默认...

来源: Laya3.0_文档 发布时间: 20251010

354. [LayaAir3]自定义字体在移动浏览器不起作用 [ 72%]

...r.load({ url: respath.font_SemiBold, type: Laya.Loader.TTF }, Laya.Handler.create(this, (obj: object) => { // 第二个参数:成功回调       console.log("预加载字体结束>>>>", obj)       if (config.H_SCREEN) {         this.loadTopBarUI()       } else {     ...

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

355. 为什么laya2.0加载不了.lm文件? [ 72%]

为什么laya2.0加载不了.lm文件? Laya.loader.create(["LayaScene_Scene/Scene.ls","LayaScene_Scene/Assets/BakerHouse/Models/Baker_house-Baker_house.lm"],Laya.Handler.create(this, this.completeHandler)); completeHandler(): void { Laya.stage.addChild(Laya.loader.getRes("LayaScene_Scene/Scene.ls...

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

356. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 72%]

...}, {url:"res/Public@sl4615.mp3",type:laya.net.Loader.SOUND} ],Laya.Handler.create(this,onLoaded));  /*登录界面*/ var resArray=[ {url:"res/LoginView.fui",type:laya.net.Loader.BUFFER}, {url:"res/LoginView@atlas0.png",type:laya.net.Loader.IMAGE} ]; var loadcount=resArray.length; function onLoaded(...

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

357. laya.resource.PrefabImpl_API3.0 [ 72%]

...y Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory addDep addDeps create destroy event hasListener isCreateFromURL off offAll offAllCaller on once destroyUnusedResources Constructors constructor new PrefabImpl(api: IHierarchyParserAPI, data: any, versi...

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

358. UI-Slider [ 72%]

...der.png", "../../res/ui/vslider$bar.png"); Laya.loader.load(skins, Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { placeHSlider(); placeVSlider(); } function placeHSlider() { var hs = new HSlider(); hs.skin = "../../res/ui/hslider.png"; hs.width = 300; hs.pos(50, 170); hs.mi...

来源: Laya_示例 发布时间: 20251209

359. laya图片路径问题 [ 72%]

...g", "/public/test/img/food/f9.png", ];    Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader.TEXT);   这个样能加载。 但是 var roleAni = new Laya.Animation();  roleAni.loadImages();  roleAni.play();  Laya.stage.addChild(role...

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

360. UI-Button [ 72%]

...ength / COLUMNS - 1) - BUTTON_HEIGHT) / 2; Laya.loader.load(skins, Handler.create(this, this.onUIAssetsLoaded)); } onUIAssetsLoaded() { for (let i = 0, len = skins.length; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE...

来源: Laya2.0_示例 发布时间: 20251209