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

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

291. 加载prefab的代码编译失败,提示“Property 'transform' does not exist on type 'Node'” [ 86%]

...refab的代码编译失败,提示“Property 'transform' does not exist on type 'Node'” 我从unity工程导出prefab到layaair中使用,根据文档中的介绍,使用如下代码加载prefab资源,             Laya.Sprite3D.load("res/prefabs/Conventional/SampleScene.lh", Laya.Handler...

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

292. laya.d3.core.RenderableSprite3D [ 85%]

...ite3D addChildren(... args):void 批量增加子节点 Node addComponent(type:*):Component3D 添加指定类型组件。 Sprite3D clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.timer.clearTimer()。 Node clone():* 克隆。 Sprite3D cloneTo(destObject:*):void 克隆...

来源: laya_api 发布时间: 20170929

293. laya.d3.physics.shape.BoxColliderShape_API3.0 [ 85%]

...SHAPEORIENTATION_UPZ Accessors localOffset localRotation sizeX sizeY sizeZ type Methods clone cloneTo destroy updateLocalTransformations Constructors constructor new BoxColliderShape(sizeX?: number, sizeY?: number, sizeZ?: number): BoxColliderShape Overrides ColliderShape.constructor Defined in laya...

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

294. panel问题 [ 85%]

...来自EventDispatcher 如图所示,当派发mouseup事件时,当前的type为mouseup,由于scrollBar移除了mouseUp事件,所以此时的this._events[type]是undefined,而源码中又去取undefined的run属性,肯定会报错,可以改成如下几句 let newListener=this._events[type]; i...

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

295. laya.d3.core.light.PointLight_API3.0 [ 85%]

...yedInStage hideFlags id intensity is3D layer lightWorldMatrix lightmapBakedType mode numChildren parent range scene shadowDepthBias shadowDistance shadowMode shadowNearPlane shadowNormalBias shadowResolution shadowStrength timer transform url Methods _initialize _processActive addChild addChildAt ad...

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

296. laya.components.AnimationClip2D_API3.0 [ 85%]

.../components/AnimationClip2D.ts:228 动画时长 Returns number event event(type: string, data?: any): boolean Inherited from EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意...

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

297. laya.d3.core.reflectionprobe.ReflectionProbe_API3.0 [ 85%]

... from Node.addChild Defined in laya/display/Node.ts:198 添加子节点。 Type parameters T: Node Parameters node: T 节点对象 Returns T 返回添加的节点 addChildAt addChildAt(node: Node, index: number): Node Inherited from Node.addChildAt Defined in laya/display/Node.ts:254 添加子节点...

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

298. laya.d3.core.BaseCamera_API3.0 [ 85%]

...ties _extra _forward _scene _up _url name tag useOcclusionCulling RENDERINGTYPE_DEFERREDLIGHTING RENDERINGTYPE_FORWARDRENDERING WORLDINVERTFRONT Accessors active activeInHierarchy clearColor components cullingMask destroyed displayedInStage farPlane fieldOfView hideFlags id is3D layer maxlocalYDista...

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

299. laya.d3.core.light.SpotLight_API3.0 [ 85%]

...yedInStage hideFlags id intensity is3D layer lightWorldMatrix lightmapBakedType mode numChildren parent range scene shadowDepthBias shadowDistance shadowMode shadowNearPlane shadowNormalBias shadowResolution shadowStrength spotAngle timer transform url Methods _initialize _processActive addChild add...

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

300. 与echarts显示的问题,HTMLDivElement [ 85%]

...ts.init(this.mydiv);进行echarts的初始化时,报: [ts] Argument of type 'HTMLDivElement' is not assignable to parameter of type 'HTMLDivElement | HTMLCanvasElement'. Type 'HTMLDivElement' is not assignable to type 'HTMLCanvasElement'. Property 'getContext' is missing in type 'HTMLDivElement'...

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