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

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

171. laya.map.GridSprite [ 52%]

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

来源: laya_api 发布时间: 20170929

172. laya.ui.Image_API3.0 [ 52%]

...载。 example 以下示例代码,创建了一个新的 Image 实例,设置了它的皮肤、位置信息,并添加到舞台上。 package { import laya.ui.Image; public class Image_Example { public function Image_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor...

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

173. as hello world 背景还是黑色 [ 52%]

...何停止正在播放的背景音乐 没有加载ls文件的情况下能否设置scene的颜色?还是只能黑色? 如何停止所有音效而不停止背景声音 为什么编辑模式下的图片背景能出来,调试的时候出不来 微信小游戏中使用Laya的SoundManager播放背景...

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

174. laya.ui.ScaleBox [ 51%]

...Component Sprite Node EventDispatcher Object 自适应缩放容器,容器设置大小后,容器大小始终保持stage大小,子内容按照原始最小宽高比缩放 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获...

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

175. 【简单跑酷--JS版】---Lv.3 添加地板 [ 51%]

...下来就是把地板显示到舞台上面 打开Floor.js 我们来给floor设置皮肤  (function(){ /** * 地板类 */ function Floor(){ //背景贴图纹理 this.bgTexture = null; //背景 this.bg = null; Floor.__super.call(this); } //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor...

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

176. laya.ui.TextArea [ 51%]

...alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anchorY : NumberY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心点。UIComponent autoSize : Boolean = false 指定...

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

177. laya.ui.Label_API3.0 [ 51%]

...ss Label_Example { public function Label_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { var label:Label = new Label();//创建一个 Label 类的实例对象 lab...

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

178. laya.d3.core.MeshTerrainSprite3D_API3.0 [ 51%]

...激活。 Inherited from Node.active Defined in laya/display/Node.ts:653 设置是否激活。 Parameters value: boolean 是否激活。 Returns void 自身是否激活。 activeInHierarchy get activeInHierarchy(): boolean Inherited from Node.activeInHierarchy Defined in laya/display/Node.ts:676 获...

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

179. laya.ui.HBox [ 50%]

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

来源: laya_api 发布时间: 20170929

180. laya.ui.DialogManager [ 50%]

...和关闭,都会出发管理类的open和close事件 可以通过UIConfig设置弹出框背景透明度,模式窗口点击边缘是否关闭,点击窗口是否切换层次等 通过设置对话框的zOrder属性,可以更改弹出的层次 Public Properties Hide Inherited Public Properties S...

来源: laya_api 发布时间: 20170929