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

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

1091. laya.physics.PhysicsDebugDraw [ 51%]

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

来源: Laya2.0_api 发布时间: 20190513

1092. laya.components.AnimatorController2D_API3.0 [ 51%]

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

1093. laya.physics.PolygonCollider_API3.0 [ 51%]

...mponent.ts:275 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 Returns void onDestroy onDestroy(): void Inherited from Component.onDestroy Defined in laya/components/Component.ts:318 手动调用节点销毁时执行 Returns void onDisable onDisabl...

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

1094. laya.ui.Slider [ 51%]

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

来源: Laya2.0_api 发布时间: 20190513

1095. 【字节小游戏】游戏中播放视频 [ 51%]

...= Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; // 创建Video元素 var videoElement:any = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElement); // 设置Video元素地样式和属性 videoElement.style.zInddex = Laya.Render.canvas.style....

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

1096. 怎么获取手机相册内容 [ 51%]

...r btn:Button = new Button("res/button-1.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对齐。达到位置一致,这里我们默认在0点位置; var file:Object = Browser.document.createElement("input"); //设置file的样式 file.style="filter:alpha(opacity=0);opa...

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

1097. laya.ui.Radio [ 51%]

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

来源: Laya2.0_api 发布时间: 20190513

1098. laya.resource.AtlasResource_API3.0 [ 51%]

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

1099. laya.particle.ParticleSetting [ 51%]

...。ParticleSettingPublic Methods  MethodDefined By  ParticleSetting() 创建一个新的 ParticleSettings 类实例。 ParticleSetting  checkSetting(setting:Object):void[static] ParticleSettingProperty DetailageAddScalepropertypublic var ageAddScale:Number = 0如果大于0,某些粒子的持...

来源: laya_api 发布时间: 20170929

1100. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 51%]

...节省了制作人员的大部分时间,提高了开发效率。本篇从创建时间轴动画至编码运用,全面介绍时间轴动画编辑器的功能及使用。 # 1. 创建时间轴动画  **时间轴动画有两种创建方式**。一种是创建`.ani`文件的时间轴动画,另一...

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