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

大约有 1,150 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0064 秒)

881. 2.0下资源加载和销毁内存问题 [ 54%]

...附上了截图。 备注:测试图片大小为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

882. Laya.timer.loop() 报错 Cannot read property 'loop' of null [ 54%]

...头", 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

883. laya.d3.core.Bounds_API3.0 [ 53%]

...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

884. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 53%]

...使用位图字体 在这个小节里,我们引导开发者在LayaAir里创建一个场景节点,然后通过代码加载并注册位图字体,然后使用并添加到场景节点中。 #### 操作指引: 第一步:在LayaAirIDE中创建一个场景页(导出类型为分离模式),...

来源: Laya2.0_文档 发布时间: 20210715

885. laya.display.Sprite [ 53%]

...用renderTarget缓存。 webgl下renderTarget缓存模式缺点:会额外创建renderTarget对象,增加内存开销,缓存面积有最大2048限制,不断重绘时会增加CPU开销。优点:大幅减少drawcall,渲染性能最高。 webgl下命令缓存模式缺点:只会减少节点...

来源: laya_api 发布时间: 20170929

886. laya.components.Component_API3.0 [ 53%]

...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

887. laya.d3.core.Gradient_API3.0 [ 53%]

... 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

888. panel 或者list 如何做滑动切换页面 [ 53%]

...缓动就好了,另外一个小小建议那五个页面不用一开始就创建,tab翻到哪一页再实例化相应页面,其他隐藏或者消耗 cry_11858 • 2017-04-07 10:14 @jiaoxueoo:嗯嗯,第二个demo复用panel

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

889. laya.ui.UIComponent_API3.0 [ 53%]

...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

890. laya.media.SoundNode_API3.0 [ 53%]

...用renderTarget缓存。 webgl下renderTarget缓存模式缺点:会额外创建renderTarget对象,增加内存开销,缓存面积有最大2048限制,不断重绘时会增加CPU开销。优点:大幅减少drawcall,渲染性能最高。 webgl下命令缓存模式缺点:只会减少节点...

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