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

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

281. 多行输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 67%]

...示。 (动图1-3) (动图1-4) 1.3 脚本控制TextArea const { regClass, property } = Laya; @regClass() export class TextAreaControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextArea } ) public txtarea: Laya.TextArea; constructor() { super(); } /** * ...

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

282. UI弹窗 · LayaAir3.0文档 · LAYABOX [ 67%]

...动图8) 3、代码创建Dialog组件 代码运行结果: const { regClass, property } = Laya; @regClass() export class UI_Dialog extends Laya.Script { private DIALOG_WIDTH: number = 220; private DIALOG_HEIGHT: number = 275; private CLOSE_BTN_WIDTH: number = 43; private CLOSE_BTN_PADDING: number...

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

283. u3d模型导出报错,1第一次导出报错,2第二次不会有这个错误提示了,3生成文件后到laya里面使用提示没有动画 [ 67%]

...et_Item (System.String key) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150) LayaExport.DataManager.saveLaniData (UnityEngine.GameObject gameObject, .JSONObject obj) LayaExport.DataManager.getAnimatorComponentData (UnityEngine.GameObject gameO...

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

284. 打地鼠的Laya1.0想用2.0写出来总是出错 [ 67%]

...模式,2.0默认文件模式。ui导出类 最上面有注释: /**This class is automatically generated by LayaAirIDE, please do not make any modifications. */ 如果检测编辑界面有改动的话运行的时候会重新生成该类。     2019-09-02 1 1 分享 微博 QZONE 微信 为什么...

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

285. Laya2.2问题,有没有遇到的? [ 67%]

...,有没有遇到的? 子域所有代码 (function () { 'use strict';  class GameConfig { constructor() { } static init() { var reg = Laya.ClassUtils.regClass; } } GameConfig.width = 640; GameConfig.height = 1136; GameConfig.scaleMode = "fixedwidth"; GameConfig.screenMode = "none"; GameConfig.al...

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

286. Vbox的问题 [ 67%]

...怎么不能排列 https://layaair.ldc.layabox.com/api/?category=UI&class=laya.ui.LayoutBox#changeItems() 父类重写sortitem方法 能实现你需求吗,有问题再反馈 2018-03-02 0 6 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...

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

287. Tab组件如何通过js控制选中 [ 67%]

...以出来当前的选项,说明继承没有问题,但是无法更改 class Tab extends TabUI{ constructor() { super() this.zOrder = 1 console.log(this._tab._selectedIndex) //返回1,正常 this._tab._selectedIndex = 0 } } xdkaka • 2017-12-14 17:40 发布肯定是已经发布了的。。。...

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

288. 时间轴动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 66%]

...play.Animation; import laya.utils.Handler; import laya.webgl.WebGL; public class TimeLineDemo { public function TimeLineDemo() { //初始化舞台 Laya.init(1334,750, WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoad回调方法 Laya.loader.load("...

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

289. 后期处理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 66%]

...可以通过代码来创建一个变色效果,示例如下: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //获取节点 @property(Laya.Sprite) public sp: Laya.Sprite; onAwake(): void { //创建后期处理实例 this.sp.postProcess = new Laya.PostPro...

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

290. Image加载完成后的图片大小重设问题 [ 66%]

...效,一直显示都是原来设定的大小。示例代码如下:   class PlayGame extends ui.PlayGameUI {     constructor() {         super();        init();     }     public init ():void     {         this.bg_img.loadImage("ui/bg.jpg",0,0,Laya.stage.width,Laya.stage.height...

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