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

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

91. UI弹窗 · LayaAir3.0文档 · LAYABOX [ 85%]

...(); } ); } private onSkinLoadComplete(e: any = null): void { this.dialog = new Laya.Dialog(); var bg: Laya.Image = new Laya.Image(this.assets[0]); this.dialog.addChild(bg); var button: Laya.Button = new Laya.Button(this.assets[1]); button.name = Laya.Dialog.CLOSE; button.pos(this.DIALOG_WIDTH - this...

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

92. dialog的lock属性没出现 [ 85%]

...} private function onSkinLoadComplete(e:*=null):void { var dialog:Dialog = new Dialog(); var bg:Image = new Image(assets[0]); dialog.addChild(bg); var button:Button = new Button(assets[1]); button.name = Dialog.CLOSE; button.pos(DIALOG_WIDTH - CLOSE_BTN_WIDTH - CLOSE_BTN_PADDING, CLOSE_BTN_PADDING);...

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

93. 关于list空间的问题 [ 85%]

...is._ui.serverList.vScrollBarSkin = ""; this._ui.serverList.selectHandler = new Handler(this, this.onSelect); this._ui.serverList.renderHandler = new Handler(this, this.onUpdateItem); //this._ui.serverList.array = this._loadData.list; this._ui.serverList.array = data;   附件 : --> 2017-09-24 添...

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

94. Clip属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 85%]

...***/ private function showBg():void { //实例化背景图 var bg:Image = new Image(bgSkin); //设置图片大小 bg.size(224, 302); //位置居舞台中间 bg.pos(Laya.stage.width - bg.width >> 1, Laya.stage.height -bg.height >> 1); //加载到舞台 Laya.stage.addChild(bg); } /***创建计数器...

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

95. ui.TestPUI() 找不到 [ 85%]

....atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ var efc =new ui.TestPUI(); Laya.stage.addChild(efc); } //new ui.TestPUI(); 这个东西找不到。我是按照官方文档动效模板来操作的。     2019-04-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

96. [BUG]刚体约束问题,移动后约束混乱! [ 85%]

...port default class GameUI extends ui.test.TestSceneUI {   private newScene:Laya.Scene3D;   private boxA: Laya.MeshSprite3D;   constructor() {     super();     Laya3D.init(0, 0);     Laya.stage.scaleMode = Laya.Stage.SCALE_FULL;     Laya.stage.screenMode = Laya.St...

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

97. laya.d3.core.ui3d.UI3DManager_API3.0 [ 85%]

...I3Dlist Methods add destory rayCast remove update Constructors constructor new UI3DManager(): UI3DManager Defined in laya/d3/core/UI3D/UI3DManager.ts:7 Returns UI3DManager Properties _UI3Dlist _UI3Dlist: SingletonList<UI3D> = new SingletonList<UI3D>() Defined in laya/d3/core/UI3D/UI3DMan...

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

98. 代码创建精灵监听不到事件? [ 85%]

...建精灵监听不到事件? var boxstr = "ui/buildsmall.png"; var box = new Laya.Sprite(); var texture = Laya.loader.getRes(boxstr); box.graphics.drawTexture(texture); var arr = {data: StorageRoom.map_storageData[0][0],tag:0}; box.on(Laya.Event.MOUSE_UP,this,this.onclick,[arr]);   var _proto = S...

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

99. Panel使用文档(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 85%]

... private onLoaded(): void { //实例化Panel组件 var panel: Laya.Panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.size(100, 100); //给panel设置滚动条皮肤 panel.vScrollBarSkin = "comp/vscroll.png"; //将pane...

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

100. 动画-旧版骨骼动画 [ 85%]

...stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 1.5, 3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = s...

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