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

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

141. laya.net.LoaderManager [ 87%]

... clas:Class = null, params:Array = null, priority:int = 1, cache:Boolean = true):* 根据clas类型创建一个未初始化资源的对象,随后进行异步加载,资源加载完成后,初始化对象的资源,并通过此对象派发 Event.LOADED 事件,事件回调参数值为此对象...

来源: laya_api 发布时间: 20170929

142. 天空-天空穹 [ 87%]

...种开发语言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform...

来源: Laya_示例 发布时间: 20240930

143. 文本-多行输入 [ 87%]

...ut(); Laya.stage.addChild(inputText); //多行输入 inputText.multiline = true; inputText.wordWrap = true; inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; inputText.padding = [2,2,2,2]; // 移动端输入提...

来源: Laya2.0_示例 发布时间: 20240930

144. laya.ani.swf.MovieClip [ 87%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite  basePath : String资源根目录。MovieClip blendMode : String指定要使用的混合模式。目前只支持"lighter"。Spri...

来源: laya_api 发布时间: 20170929

145. laya.particle.Particle2D [ 87%]

...透明。更改alpha值会影响drawcall。Sprite  autoPlay : Boolean = true是否自动播放Particle2D autoSize : Boolean = false 指定是否自动计算宽高数据。默认值为 false 。 Sprite宽高默认为0,并且不会随着绘制内容的变化而变化,如果想根据绘制内容...

来源: laya_api 发布时间: 20170929

146. laya.ui.HSlider [ 87%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite bar : Button[read-only] 表示滑块按钮的引用。 Slider blendMode : String指定要使用的混合模式。目前只支持"...

来源: laya_api 发布时间: 20170929

147. 射线检测-碰撞器混合 [ 87%]

...种开发语言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); this._tempUnitX1 = new Laya.Vector3(0, 0, -0.1); this._tempUnitX2 = new Laya.Vector3(0, 0, 0.1); this._tempUnitX3 = new Laya.Vector3(-0.1, 0, 0); this._tempUnitX4 = new Laya.Vector3(0.1, 0, 0); this.debug = true; Laya.st...

来源: Laya_示例 发布时间: 20240930

148. 在2.0里如何调用在编辑模式下创建的对话框 [ 87%]

...olor":"#000000","height":480}, "nodeParent":-1, "label":"Dialog", "isOpen":true, "isDirectory":true, "isAniNode":true, "hasChild":true, "compId":1, "child":[ { "x":15, "type":"Image", "props":{"y":0,"x":0,"width":640,"skin":"comp/img_bg.png","sizeGrid":"25,5,5,5","height":480}, "nodeParent":1, "labe...

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

149. laya.ui.Dialog [ 87%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容...

来源: laya_api 发布时间: 20170929

150. 3D的动态阴影有代码demo吗? [ 87%]

...出来! 1,场景中加入直射光,开阴影 directionLight.shadow = true; 2,角色设置产生阴影 roleMeshSprite.meshRender.castShadow = true; 3,场景设置接受阴影 sceneMeshSprite.meshRender.receiveShadow = true; 2017-07-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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