大约有 195 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
...用renderTarget缓存。 webgl下renderTarget缓存模式缺点:会额外创建renderTarget对象,增加内存开销,缓存面积有最大2048限制,不断重绘时会增加CPU开销。优点:大幅减少drawcall,渲染性能最高。 webgl下命令缓存模式缺点:只会减少节点...
来源: Laya2.0_api 发布时间: 20190513
...s "laya/components/Component" Component Class Component Component 类用于创建组件的基类。 Hierarchy Component Widget Volume MeshFilter ConstraintComponent PhysicsComponent BaseRender Light Animator Animator2D RigidBody ColliderBase Script LODGroup HLOD EffectBase JointBase Index Constructo...
来源: Laya3.0_api 发布时间: 20231115
...rController PhysicsComponent Component Object CharacterController 类用于创建角色控制器。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By canCollideWith : int 获取可碰撞的碰撞组。 PhysicsComponent canScaleShape : Boolean =...
来源: Laya2.0_api 发布时间: 20190513
...ited from Component.constructor Defined in laya/components/Component.ts:44 创建一个新的 Component 实例。 Returns EffectBase Properties Optional _extra _extra: IComponentExtra Inherited from Component._extra Defined in laya/components/Component.ts:36 Optional _singleton _singleton: boolean =...
来源: Laya3.0_api 发布时间: 20231115
...; } }首先判断本地缓存有没有,有的话 不处理,没得话,创建,push到数组中 private getView(clazz: any):Laya.Node{ for(let i:number =0 ; i<this.uiList.length ; i++){ let uiData = this.uiList[i]; if(uiData.clazz == clazz){ return uiData.view; } } }[/i]根据clazz名字获...
来源: Laya_社区 发布时间: 20190222
...lay.Sprite); var _proto = Floor.prototype; _proto.init = function(type){ //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } //在地板上面添加物品 _proto.addItem = function(){ } _proto.onLoop = function(){ } })(); 因为是一个跑酷的游戏 所以 我们之...
来源: Laya_社区 发布时间: 20160728
... let sp = BPFont.fontPool.shift() || new Laya.Sprite(); return sp; } /** * 创建位图文本 * @param v */ private createFnt(v: string): void { this.clearFnt(); this.createChars(v); } /** * 创建字符 * @param v */ private createChars(v: string): void { if (!v) { return; } let charNum = v.length;...
来源: Laya_社区 发布时间: 20180302
...ublic class AnimatorInheritanceAnimator Component Object Animator 类用于创建动画组件。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By avatar : Avatar 获取avatar。 Animator cullingMode : int = 2 裁剪模式Animator destroye...
来源: Laya2.0_api 发布时间: 20190513
...onents/CommonScript" CommonScript Class CommonScript CommonScript 类用于创建公共脚本类。 Hierarchy Component CommonScript Index Constructors constructor Properties _extra _singleton owner runInEditor scriptPath Accessors awaked destroyed enabled hideFlags id isSingleton Methods _initializ...
来源: Laya3.0_api 发布时间: 20231102
... "laya/d3/core/MeshFilter" MeshFilter Class MeshFilter MeshFilter 类用于创建网格过滤器。 Hierarchy Component MeshFilter Index Constructors constructor Properties _extra _singleton owner runInEditor scriptPath Accessors awaked destroyed enabled hideFlags id sharedMesh Methods _initialize _...
来源: Laya3.0_api 发布时间: 20231115