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

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

1041. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 65%]

...Laya.loader.load(partPath, Laya.Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); }  onAssetsLoaded(settings) {         // 当load数组的时候,回调函数传入的参数不再是资源,可以通过以下方法获取资源         // let settings = Laya.loader.ge...

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

1042. laya.ui.Image_API3.0 [ 65%]

... updateZOrder fromImage Constructors constructor new Image(skin?: string | null): Image Overrides UIComponent.constructor Defined in laya/ui/Image.ts:98 创建一个 Image 实例。 Parameters Default value skin: string | null = null 皮肤资源地址。 Returns Image Properties Optional _extra _ex...

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

1043. 鼠标交互-双指缩放(多点触控) [ 64%]

...ent.MOUSE_DOWN, this, onMouseDown); } private function onMouseDown(e:Event=null):void { var touches:Array = e.touches; if(touches && touches.length == 2) { lastDistance = getDistance(touches); Laya.stage.on(Event.MOUSE_MOVE, this, onMouseMove); } } private function onMouseMove(e:Event=null):void { v...

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

1044. 粒子编辑器黑屏 [ 64%]

...截图给研发商 Uncaught TypeError: Cannot read property 'addChild' of null TypeError: Cannot read property 'addChild' of null     at Function.ViewRenderManager.show (file:///E:/LayaAirIDE_1.7.10_beta/resources/app/out/vs/layaEditor/h5/layabuilder.max.js:15196:27)     at ParticleScene.__pro...

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

1045. laya.d3.core.scene.bvh.BVHSpatial_API3.0 [ 64%]

...建BVH系统实例 Parameters Default value bvhConfig: BVHSpatialConfig = null Default value bvhManager: BVHSpatialManager = null Returns BVHSpatial Accessors bvhSpatialBox get bvhSpatialBox(): BVHSpatialBox<IBoundsCell> Defined in laya/d3/core/scene/bvh/BVHSpatial.ts:46 获得空间节点 Ret...

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

1046. laya.d3.core.pixelLine.PixelLineMaterial [ 64%]

...t = 1):void[override] BaseMaterial _parse(data:*, propertyParams:Object = null, constructParams:Array = null):BaseMaterial[static] BaseMaterial _removeReference(count:int = 1):void[override] BaseMaterial clone():* 克隆。 BaseMaterial cloneTo(destObject:*):void 克隆。 BaseMaterial load(url...

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

1047. 物体随着鼠标滑动旋转脚本 [ 64%]

...     this.rotaionSpeed = 0.00006;      this.mainCameraAnimation = null;     this.scene = null; } Laya.class(ObjectRotate, "ObjectRotate", Laya.Script);  //这是什么意思有什么作用 ObjectRotate.prototype._initialize = function (owner) {     var _this = this;     ObjectR...

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

1048. laya.d3.shader.Shader3D [ 64%]

...activeShader : BaseShader[static] BaseShader  _attributeParams : Array = nullShader3D  _attributeParamsMap : ArrayShader3D bindShader : BaseShader[static] BaseShader  _cameraUniformParamsMap : ArrayShader3D  _id : intShader3D  _includeFiles : *[static] Shader3D  _materialUniformParamsMa...

来源: laya_api 发布时间: 20170929

1049. 1整天了,还是没解决加载本地文件问题 [ 64%]

...e at 'file:///E:/layawork/myLaya12/bin/h5/war/background.png' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed access. 加载本地文件总是报错, chrome 浏览器快捷方式有加 --allow-file-access-from-files 了,还是一样。...

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

1050. [LayaAir3]3.3.2与设置组件灰显相关的 Bug 和 Crash [ 64%]

...画的状态信息 */ playStateInfo: AnimatorPlayScriptInfo = { animator: null, layerindex: -1, playState: null }; setPlayScriptInfo(animator: Laya.Animator2D, layerindex: number, playstate: Laya.AnimatorState2D) { this.playStateInfo.animator = animator; this.playStateInfo.layerindex = layerindex; t...

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