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

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

6811. 深入理解LayaAir引擎架构和实现原理(二)项目调试原理及完美开发调试方案 [ 31%]

...isDefault": true } }, ] }3.2 gulpfile 项目文件夹下安装好gulp和所需要的的库 //引用插件模块 var gulp = require("gulp"); var browserify = require("browserify"); var source = require("vinyl-source-stream"); var sourcemaps = require('gulp-sourcemaps'); var buffer = require('vinyl-bu...

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

6812. Tree属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 31%]

...兴趣的读者可以自己通过代码设置Tree,创建出符合自己需要的文件夹。 **示例代码:** ```javascript module laya { import Stage = Laya.Stage; import Tree = Laya.Tree; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; import Utils = L...

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

6813. 输入设备-地图 [ 31%]

...e = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; // 本地运行,需要在index.html中引用百度地图API文件 this.createDom(); this.initMap(); this.createInfoText(); let successHandler = new Handler(this, this.updatePosition); let errorHandler = new Handler(this, this.onError); // ...

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

6814. ShaderPass介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 31%]

...我们已经构成了一个使用多Pass描边Shader的材质。然后只需要和以前一样使用材质就行。不过记得在使用前初始化材质。 ```typescript //初始化Shader MultiplePassOutlineMaterial.initShader(); //加载网格 Laya.Mesh.load("res/threeDimen/skinModel/LayaMonkey/A...

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

6815. laya.device.media.Video_API3.0 [ 31%]

...imationBase._skinBaseUrl Defined in laya/display/Sprite.ts:269 如果节点需要加载相关的皮肤,但放在不同域,这里可以设置 Optional _url _url: string Inherited from Node._url Defined in laya/display/Node.ts:57 autoSize autoSize: boolean = false Inherited from AnimationBase.auto...

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

6816. laya.d3.core.light.LightSprite [ 31%]

...:Node 替换子节点。 Node runCallLater(method:Function):void 如果有需要延迟调用的函数(通过 callLater 函数设置),则立即执行延迟调用函数。 Node setChildIndex(node:Node, index:int):Node 设置子节点的索引位置。 Node timerLoop(delay:int, caller:*, metho...

来源: Laya2.0_api 发布时间: 20190513

6817. laya.d3.core.pixelline.PixelLineMaterial_API3.0 [ 31%]

...类型。 Optional data: any (可选)回调数据。注意:如果是需要传递多个参数 p1,p2,p3,...可以使用数组结构如:[p1,p2,p3,...] ;如果需要回调单个参数 p ,且 p 是一个数组,则需要使用结构如:[p],其他的单个参数 p ,可以直接传入参...

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

6818. laya.d3.component.volume.batchvolume.StaticBatchVolume_API3.0 [ 30%]

...olume/StaticBatchVolume.ts:311 重新合批,将清理前面状态 必要时需要手动调用,根据Volume里面的值,进行合批 Returns void Globals "laya/d3/component/Volume/BatchVolume/StaticBatchVolume" StaticBatchVolume constructor _extra _singleton owner runInEditor scriptPath awaked bounds...

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

6819. laya.d3.core.trail.TrailSprite3D [ 30%]

...:Node 替换子节点。 Node runCallLater(method:Function):void 如果有需要延迟调用的函数(通过 callLater 函数设置),则立即执行延迟调用函数。 Node setChildIndex(node:Node, index:int):Node 设置子节点的索引位置。 Node timerLoop(delay:int, caller:*, metho...

来源: Laya2.0_api 发布时间: 20190513

6820. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 30%]

...ene.load()方法是资源的异步加载,有时候3D的资源比较大,需要预加载来来提升首屏的体验。这时候我们可以用加载器预加载。 ​ 2D游戏资源我们是用**Laya.loader.load()**方法预加载,而3D资源必须用Laya.loader.create()这个方法。在加载...

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