大约有 1,150 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0064 秒)
Laya3.0_api(314) Laya_社区(291) Laya2.0_api(226) laya_api(174) Laya2.0_文档(113) Laya3.0_文档(29) Laya2.0_示例(3)
...附上了截图。 备注:测试图片大小为640*1038,900K 先创建一个img实例 class bitmapimg extends Laya.Image //2.0版本 这里区别为export default class bitmap extends Laya.Image { private szurl:string="" constructor(url:string){ super() this.onUrlChangeHandler(url); } prote...
来源: Laya_社区 发布时间: 20181201
...头", type:Image} */ // public _move_img: Image; // public _list: List; //创建一个 List 类的实例对象 list 。 private n:number = 0; private x0:number = 0; private y0:number = 0; constructor(){super();} onEnable():void{ this.x = this.x0; this.y = this.y0; Laya.timer.loop(20, this, this.fram...
来源: Laya_社区 发布时间: 20200203
...ted Menu Globals "laya/d3/core/Bounds" Bounds Class Bounds Bounds 类用于创建包围体。 Hierarchy Bounds Implements IClone Index Constructors constructor Properties _boundBox TEMP_VECTOR3_MAX0 TEMP_VECTOR3_MAX1 Methods calculateBoundsintersection clone cloneTo getCenter getExtent getMax getMin...
来源: Laya3.0_api 发布时间: 20231102
...使用位图字体 在这个小节里,我们引导开发者在LayaAir里创建一个场景节点,然后通过代码加载并注册位图字体,然后使用并添加到场景节点中。 #### 操作指引: 第一步:在LayaAirIDE中创建一个场景页(导出类型为分离模式),...
来源: Laya2.0_文档 发布时间: 20210715
...用renderTarget缓存。 webgl下renderTarget缓存模式缺点:会额外创建renderTarget对象,增加内存开销,缓存面积有最大2048限制,不断重绘时会增加CPU开销。优点:大幅减少drawcall,渲染性能最高。 webgl下命令缓存模式缺点:只会减少节点...
来源: laya_api 发布时间: 20170929
...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
... Globals "laya/d3/core/Gradient" Gradient Class Gradient Gradient 类用于创建颜色渐变。 Hierarchy Gradient Implements IClone Index Constructors constructor Accessors colorAlphaKeysCount colorRGBKeysCount maxColorAlphaKeysCount maxColorRGBKeysCount mode Methods addColorAlpha addColorRGB clon...
来源: Laya3.0_api 发布时间: 20231115
...缓动就好了,另外一个小小建议那五个页面不用一开始就创建,tab翻到哪一页再实例化相应页面,其他隐藏或者消耗 cry_11858 • 2017-04-07 10:14 @jiaoxueoo:嗯嗯,第二个demo复用panel
来源: Laya_社区 发布时间: 20170401
...omponent Overrides Sprite.constructor Defined in laya/ui/UIComponent.ts:24 创建一个新的 Component 实例。 Parameters Default value createChildren: boolean = true Returns UIComponent Properties Optional _extra _extra: INodeExtra Inherited from Node._extra Defined in laya/display/Node.ts:56 _o...
来源: Laya3.0_api 发布时间: 20231115
...用renderTarget缓存。 webgl下renderTarget缓存模式缺点:会额外创建renderTarget对象,增加内存开销,缓存面积有最大2048限制,不断重绘时会增加CPU开销。优点:大幅减少drawcall,渲染性能最高。 webgl下命令缓存模式缺点:只会减少节点...
来源: Laya3.0_api 发布时间: 20231115