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

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

1451. 修改position与修改localPosition结果不一致(同处于3d场景下的两个节点) [ 45%]

...aya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Han...

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

1452. 发现TimeLine的一些问题,像是BUG [ 45%]

...ya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 Laya.stage.bgColor="#353535"; sp1=createSprite(50,50);//创建方块1 sp2=createSprite(250,50);//创建方块2 sp3=createSprite(450,50);//创建...

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

1453. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 45%]

...(`${this.ANIMATION_PATH}move${i}.mc`); Laya.loader.load(urls, Laya.Handler.create(this, () => { for (let i = 1; i <= 8; i++) { const clipPath = `${this.ANIMATION_PATH}move${i}.mc`; // 检查资源是否存在 if (Laya.loader.getRes(clipPath)) { this.loadedClips.push(clipPath); } } console.log(...

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

1454. 如何自定义Shader(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 45%]

...布功能生成 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); ....... ``` 在GameUI中使用我们的自定义材质。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(Primitiv...

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

1455. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 45%]

...item.size; items.push(item); var progressHandler = progress ? Laya.Handler.create(null, loadProgress, [item], false) : null; var completeHandler = (complete || progress) ? Laya.Handler.create(null, loadComplete, [item]) : null; this.load(item.url, completeHandler, progressHandler, item.type, item.pr...

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

1456. Laya2.0导入protobufjs第三方库,报错找不到文件 [ 45%]

...rInfoProto; var p: protoAll.com.bee.protobuf.ClimbingTowerInfoProto = pCls.create(); p.curId = 10; p.isSecondPass = true;   用了第三方库protobufjs。 protoAll.d.ts是proto打包出来的proto类文件,在vscode中TS项目测试过可以正常使用。  我已经生成出js和.d.ts代码了...

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

1457. native 1.0.2 连不上wss [ 45%]

...TICE: Compiled with OpenSSL support NOTICE: Doing SSL library init NOTICE: Creating Vhost 'default' port -1, 1 protocols, IPv6 on NOTICE: lws_context_init_client_ssl: doing cert filepath NOTICE: Loaded client cert /var/mobile/Containers/Data/Application/191B3AE2-4606-48EF-932D-E1D1A59B5773/Library/C...

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

1458. 微信小游戏 · LayaAir3.4 · 引擎文档 · LAYABOX [ 45%]

...Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.printProgress).then(() => { Laya.loader.load("sub2/Sphere.lh").then((res: any) => { let sp3 = res.create(); this.scene3d...

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

1459. 无法触发浏览器文件上传框 [ 45%]

...structor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let button = new Laya.Button(skin, '上...

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

1460. 动画-旧版骨骼动画 [ 45%]

...id { Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(this, function (): void { this.changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "切换动作")) as Laya.Button; this.changeActionButton.size(160, 40); this.changeActionBut...

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