大约有 1,163 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)
Laya3.0_api(314) Laya_社区(299) Laya2.0_api(226) laya_api(174) Laya2.0_文档(113) Laya3.0_文档(34) Laya2.0_示例(3)
...用renderTarget缓存。 webgl下renderTarget缓存模式缺点:会额外创建renderTarget对象,增加内存开销,缓存面积有最大2048限制,不断重绘时会增加CPU开销。优点:大幅减少drawcall,渲染性能最高。 webgl下命令缓存模式缺点:只会减少节点...
来源: laya_api 发布时间: 20170929
...r2InheritanceVector2 ObjectImplements laya.d3.core.IClone Vector2 类用于创建二维向量。 Public Properties PropertyDefined By x : NumberX轴坐标Vector2 y : NumberY轴坐标Vector2Public Methods MethodDefined By Vector2(x:Number = 0, y:Number = 0) 创建一个 Vector2 实例。 ...
来源: Laya2.0_api 发布时间: 20190513
...cleRenderer Class ShurikenParticleRenderer ShurikenParticleRender 类用于创建3D粒子渲染器。 Hierarchy BaseRender ShurikenParticleRenderer Implements IBoundsCell Index Constructors constructor Properties _extra _particleSystem _receiveShadow _singleton owner runInEditor scriptPath sortingFu...
来源: Laya3.0_api 发布时间: 20231115
...mationClip呢? 关于apk打包动画卡的问题 一个时间轴动画里创建的多个动画,怎么分别调用?如图 移植了一个游戏 代码重新 写的 这样写的代码,Tween动画里面只有alpha有效果,scalex和scaley没有变化,怎么回事啊? 缓动动画SKEW-Y从...
来源: Laya_社区 发布时间: 20190215
...可以启用物理。 Laya3DPublic Methods MethodDefined By Laya3D() 创建一个 Laya3D 实例。 Laya3D _cancelLoadByUrl(url:String):void[static] private Laya3D init(width:Number, height:Number, config:Config3D = null, compolete:Handler = null):void[static] 初始化Laya3D相关设置...
来源: Laya2.0_api 发布时间: 20190513
...TimerPublic Methods MethodDefined By Timer(autoActive:Boolean = true) 创建 Timer 类的一个实例。 Timer callLater(caller:*, method:Function, args:Array = null):void 延迟执行。 Timer clear(caller:*, method:Function):void 清理定时器。 Timer clearAll(caller:*):void 清...
来源: Laya2.0_api 发布时间: 20190513
在2.0里如何调用在编辑模式下创建的对话框 如题,在编辑模式下创建了一个Dialog:firstDialog.scene 请问如何在场景中调用它? firstDialog.scene的内容如下: { "x":0, "type":"Dialog", "selectedBox":1, "selecteID":3, "props":{"width":640,"sceneColor":"#...
来源: Laya_社区 发布时间: 20190109
2.0ts语言下代码模式创建的脚本在ide中添加上运行报空 我在代码模式下创建了一个脚本,用来存放预制体和实例预制体,创建好之后我在主场景中添加好脚本挂载好预制体之后运行报空 2018-12-21 添加评论 免费帖 --> 分享 微博 QZO...
来源: Laya_社区 发布时间: 20181221
针对已经创建的预设box1.prefab进行修改后,如何保存并全局应用? box1.prefab预设中默认有两个元素,我对预设进行修改,增加了一个文本控件,保存后,无法同步应用到之前引用box1.prefab的view中,而且新增的文本label控件并没有...
来源: Laya_社区 发布时间: 20180503
...className: string): any Defined in laya/utils/ClassUtils.ts:30 根据名称创建 Class 实例。 Parameters className: string 类名(比如laya.display.Sprite)或者注册的别名(比如Sprite)。 Returns any 返回类的实例。 Static regClass regClass(className: string, classDef: any): void De...
来源: Laya3.0_api 发布时间: 20231115