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

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

51. UI运行时 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...} from "./RuntimeScript.generated"; @regClass() export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { // Button添加鼠标事件,让Image不显示 this.Button.on( Laya.Event.MOUSE_DOWN, this, ()=>{ this.Image.visible = false; }); } } 其次,可以在Scene2D节点下添加...

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

52. UI加载完成后无法获取控件的大小——超详细版问题 [ 62%]

... Loader = laya.net.Loader; import Stage = laya.display.Stage; class TestUI extends ui.test.testwhUI { constructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements); this.mypan.vScrollBar.on(Laya.Event.CHANGE, this, this.fitDOMElements_scroll); }...

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

53. 关于新手引导 [ 61%]

...; import laya.utils.Browser; import laya.utils.HitArea; public class KouTu extends Sprite { private var box:Sprite; private var interactionArea:Sprite; private var maskArea:Sprite; private var guideContainer:Sprite; private var gameContainer:Sprite; public function KouTu() { super(); //绘制一个...

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

54. 求助,屏幕旋转后滚动条没有跟随旋转 [ 60%]

...幕旋转后滚动条没有跟随旋转 module dialog { export class WanF extends ui.dialog.WanFUI { constructor() { super(); this.rotation = 90; this.pos(1060, 280); let panel = new Laya.Panel(); panel.size(638, 527); panel.vScrollBarSkin = "CommDialog/vscroll.png"; this.sp_wanfa.addChild(panel); l...

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

55. 自定义组件时,设置组件子节点的image的skin时,路径为layaIde的路径而非项目路径 [ 58%]

...ui.Image; /** * ... * @author Caixiansheng */ public class HProgressSlider extends HSlider { /**@private */ protected var _progress:Image protected var _proMask:Sprite; public function HProgressSlider(skin:String=null) { super(skin); } override protected function initialize():void{ super.initialize(...

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

56. popupEffect 有谁能告诉我dialog的这个东西要怎么用啊? [ 57%]

...分享 微博 QZONE 微信 1553745787用户 赞同来自: class DialogPage extends ui.DialogPageUI { private tip:Laya.TipManager = new Laya.TipManager(); constructor() { super(); this.popupEffect= new Laya.Handler(this, function(dialog:Dialog):void { dialog.scale(1, 1); Laya.Tween.from(dialog, {x: L...

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

57. 可以帮我测试一下吗? 使用mask的场景,放着就会出现记忆体用完的讯息? [ 56%]

...有将mask拿掉测试,发现就不会有类似问题。class GameLayer extends ui.GameLayerUI { private infos : any; constructor () { super (); this.infos = { rotation : 0 }; Laya.timer.frameLoop(1,this,()=> { this.infos.rotation += 1; if (this.infos.rotation >= 360) this.infos.rotation -= ...

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

58. Dialog 第一次打开总是出现在窗口右下角,这是为啥,再打开就正常剧中了? [ 56%]

...个窗口,都是这样,代码如下 export default class SettingDialog extends Laya.Dialog { constructor() { super(); this.loadScene('assets/scenes/dialogs/SettingDialog.scene'); } }{ "x":0, "type":"Dialog", "selectedBox":2, "selecteID":3, "searchKey":"Dialog", "props":{"width":1624,"sceneColor"...

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

59. 2.0里面的组件(Laya.Script)的prop其中几个类型应该怎么设置 [ 56%]

...其他的类型的范例供大家参考   export default class TestScript extends Laya.Script { /** @prop {name:intType, tips:"整数类型示例", type:Int, default:1000}*/ public intType: number = 1000; /** @prop {name:numType, tips:"数字类型示例", type:Number, default:1000}*/ public numTyp...

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

60. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 55%]

...下:   /**Created by the LayaAirIDE*/ module view { export class Guide extends ui.GuideUI { constructor() { super(); // 创建Video元素 let videoElmt: any = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElmt); // 设置Video元素地样式和属性 videoElmt.s...

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