大约有 1,460 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0080 秒)
Laya3.0_api(398) Laya_社区(300) Laya2.0_api(251) laya_api(215) Laya2.0_文档(167) Laya3.0_文档(90) Laya2.0_示例(22) Laya_示例(17)
...ht" DirectionLight Class DirectionLight deprecated DirectionLight 类用于创建平行光。 Hierarchy LightSprite DirectionLight Index Constructors constructor Properties _extra _scene _url name tag WORLDINVERTFRONT Accessors active activeInHierarchy color components destroyed displayedInStage hid...
来源: Laya3.0_api 发布时间: 20231115
...lic Methods Show Inherited Public Methods MethodDefined By BaseScene() 创建一个 BaseScene 实例。 BaseScene addChild(node:Node):Node[override] 添加子节点。 BaseScene addChildAt(node:Node, index:int):Node[override] 添加子节点到指定的索引位置。 BaseScene addChildre...
来源: laya_api 发布时间: 20170422
...用renderTarget缓存。 webgl下renderTarget缓存模式缺点:会额外创建renderTarget对象,增加内存开销,缓存面积有最大2048限制,不断重绘时会增加CPU开销。优点:大幅减少drawcall,渲染性能最高。 webgl下命令缓存模式缺点:只会减少节点...
来源: laya_api 发布时间: 20170929
...esh2DRender; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.light1Render = this.light1.getComponent(Laya.FreeformLight2D); this.mesh1Render = this.mesh1.getComponent(Laya.Mesh2DRender); this.mesh2Render = this.mesh2.getCom...
来源: Laya3.0_文档 发布时间: 20250214
...。 6,将来的建议 绕了这么一个大圈,其实 就是为了创建一个DIV,在DIV上用 echarts库画图, 有没有办法直接获取到UI组件,如Label的DIV 这样可以直接将echart画 到label上。估计传统的基于DIV的库,也有这个需求。 麻烦帮看看...
来源: Laya_社区 发布时间: 20170720
...URL Defined in laya/resource/Resource.ts:196 返回资源是否从指定url创建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off De...
来源: Laya3.0_api 发布时间: 20231102
... 类用于检测碰撞。 Public Methods MethodDefined By Collision() 创建一个 Collision 实例。 Collision boxContainsBox(box1:BoundBox, box2:BoundBox):int[static] 空间中包围盒是否包含另一个包围盒 Collision boxContainsPoint(box:BoundBox, point:Vector3):int[static] ...
来源: laya_api 发布时间: 20170929
...于检测碰撞。 Public Methods MethodDefined By CollisionUtils() 创建一个 Collision 实例。 CollisionUtils boxContainsBox(box1:BoundBox, box2:BoundBox):int[static] 空间中包围盒是否包含另一个包围盒 CollisionUtils boxContainsPoint(box:BoundBox, point:Vector3):int[st...
来源: Laya2.0_api 发布时间: 20190513
...URL Defined in laya/resource/Resource.ts:198 返回资源是否从指定url创建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off De...
来源: Laya3.0_api 发布时间: 20231115
...态和三态,默认三态(up,over,down)。 example 以下示例代码,创建了一个 Button 实例。 package { import laya.ui.Button; import laya.utils.Handler; public class Button_Example { public function Button_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor...
来源: Laya3.0_api 发布时间: 20231115