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

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

711. IDE创建3D示例项目(JavaScript-3D基础(JS)-快速开始一个LayaAir3D项目) [ 52%]

...模型 var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex) { material.albed...

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

712. 设置滤镜(ActionScript-LayaAir基础篇(AS3)-位图) [ 52%]

...howall"; Laya.stage.bgColor = "#232628"; Laya.loader.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(ApePat...

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

713. view和panel关于mouseThrough的区别 [ 52%]

...集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 Dialog和View用destroy和Laya.stage.removeChild有什么区别? 求解:2D项目中加载View,Laya.Scene.load应该如何使用? 关于打包图集时的图片默认属性与repeat的...

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

714. laya3.0中jszip使用异常 [ 52%]

...oader.load([{ url: zipUrl, type: Laya.Loader.BUFFER }], null, Laya.Handler.create(this, this.onLoadCfg, null, false)).then(             (value) => {                 JSZip.loadAsync(value).then(                     (zipData: JSZip) => {                       ...

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

715. 多光源渲染(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 52%]

...s/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199...

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

716. 多光源渲染(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 52%]

...s/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199...

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

717. 使用IDE打包图集工具出来的atlas,调用clearRes无法卸载资源 [ 52%]

...载时时这样调用 Laya.loader.load("res/MainBlood.atlas", Laya.Handler.create(this, this.onAtlasLoaded), null, Laya.Loader.ATLAS); 卸载时这样 Laya.loader.clearRes("res/MainBlood.atlas");在Laya.Loader.loadedMap里查找是没有了,但是统计面板的CurMem降不下来,工程已经打...

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

718. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 52%]

...mage.json Laya.loader.load([{url: "res/Image.json", type: "plf"}], Handler.create(this, function():void { //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:Sprite ...

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

719. 图集打包后使用Texture不显示,项目整个已经传上来了 [ 52%]

...: "res/start.json", type: Loader.ATLAS}); Laya.loader.load(assets, Handler.create(this, this.onComplete)); } private onComplete(): void { var texture:Texture = Laya.loader.getRes("start/sg.png"); var sp = new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); Laya.stage.addChild(sp); var ani: Laya...

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

720. 绘制能力 · LayaAir3.4 · 引擎文档 · LAYABOX [ 52%]

...mber = 1, percent?: boolean): DrawRectCmd { return this.addCmd(DrawRectCmd.create(x, y, width, height, fillColor, lineColor, lineWidth, percent)); } 代码示例: let sp = new Laya.Sprite(); //画矩形 sp.graphics.drawRect(20, 20, 100, 50, "#ffff00", "#00ff00", 5, false); this.owner.addChild(sp);...

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