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

大约有 332 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0079 秒)

281. laya.ui.ColorPicker_API3.0 [ 44%]

...er_Example { public function ColorPicker_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/color.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():...

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

282. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 44%]

...2017-12-28 0 14 分享 微博 QZONE 微信 LagField 赞同来自: 只要是设置的transform.rotation就会出问题,如果只设置localrotation就是好的 2017-12-29 0 5 分享 微博 QZONE 微信 LagField 赞同来自: 感觉旋转已经没法做了,这个问题不解决的话 2017-12-29 0 ...

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

283. laya.ui.ComboBox_API3.0 [ 43%]

...boBox_Example { public function ComboBox_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete()...

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

284. 物理引擎显示旋转问题 [ 43%]

...und: '#00ff00', //当wireframes为true的时候,wireframeBackground可以设置背景颜色                 showAngleIndicator: true, //角度指示器                 width: 750,                 height: document.body.scrollHeight * window.devicePixe...

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

285. laya.ui.Slider [ 43%]

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

来源: laya_api 发布时间: 20170929

286. laya.ui.Label_API3.0 [ 42%]

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

287. laya.ui.Dialog [ 42%]

...实现对话框弹出,拖动,模式窗口功能。 可以通过UIConfig设置弹出框背景透明度,模式窗口点击边缘是否关闭等 通过设置zOrder属性,可以更改弹出的层次 通过设置popupEffect和closeEffect可以设置弹出效果和关闭效果,如果不想有任...

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

288. WebSocket通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...到 LayaAir 引擎中 const img = new Laya.Image(); img.size(110, 145); // 设置图片显示大小 img.skin = Laya.Browser.window.URL.createObjectURL(new Blob([uint8Array], { type: 'image/png' })); img.centerX = 0; // 设置图片居中显示 // 将图片添加到舞台显示 Laya.stage.addChild(im...

来源: Laya3.0_文档 发布时间: 20251010

289. laya.ui.Panel [ 42%]

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

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

290. laya.ui.Tree [ 41%]

...alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anchorY : NumberY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心点。UIComponent  array : Array 列表数据源,...

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