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

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

71. 自定义组件用的layaeditor.d.zip报错 [ 71%]

...上论坛求助了。 比如这么一个报错的地方: class Component extends laya.ui.Component implements laya.ui.IComponent { _getBoundPointsM(ifRotate?: boolean): Array<any>; disableLayout: boolean; protected resetLayoutX(): void; protected resetLayoutY(): void; } 类laya.ui.Component ...

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

72. ComboBox显示问题 [ 71%]

...nHead { import laya.ui.*; import laya.display.*;  public class MainHeadUI extends View { public var image1:Image; public var input:TextInput; public var combox:ComboBox; public var radio:RadioGroup; public var checkBox:CheckBox; public var gongji:Button; public var btn1HasLabel:Button; public stati...

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

73. 为什么这个ui中给这个TextInput组件runtime属性绑定了一个类 [ 71%]

...runtime属性绑定了一个类 绑定了这个类后, class TextInputEx extends Laya.TextInput constructor() { console.log("执行了"); super() ; } // 获取焦点 onFocus() : void { console.log("焦点进入"); // 是否缓存初始的文本提示字符串和文本颜色. if (!this.initText) { ...

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

74. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

...: const { regClass, property } = Laya; @regClass() export class ScriptA extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (r...

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

75. 资源加载 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

... const { regClass, property } = Laya; @regClass() export class LoaderDemo extends Laya.Script { onAwake(): void { this.loadTexture("resources/image/monkey2.png", 500);//需要在resources/image放入相应的资源 this.loadTexture("https://layaair.com/3.x/demo/resources/res/apes/monkey2.png"); } /*...

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

76. RopeJoint代码动态创建 无法设置otherbody [ 70%]

...0110110110@qq.com * @ data: 2022-04-09 15:53 */ export default class fruit extends Laya.Script {     static Fru:fruit;     public rope:Laya.RopeJoint     constructor() {         super();        fruit.Fru=this;             }      onAwake() {         let rig:Laya.RigidBody=t...

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

77. 2.0 Beta3版本中,runtime脚本的的问题 [ 70%]

....Dialog; import Scene=Laya.Scene; export module ui { export class BGPageUI extends View { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("BGPage"); } } export class MonkeyPageUI extends View { constructor(){ super()} createChildren():void { super.createChildre...

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

78. tsc编译报错 [ 70%]

...题! 2017-03-01 0 0 分享 微博 QZONE 微信 jiye 赞同来自: 我在extends 后面多写了class 所以报了这个诡异的错 @xiaosong 2017-03-01 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jiye 相关问题 Layabox 2.0 bate5...

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

79. [LayaAir3]如何在3D场景添加文字呢 [ 70%]

...用 ui3d.sprite 获取 prefab 的根节点.   export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { let sprite3d: Laya.Sprite3D = this.scene3D.getChildByName("m_Sprite3D"); let ui3d: Laya.UI3D = sprite3d.getComponent(Laya.UI3D); let ui3d_root: Laya.Sprite = ui3d.sprite; console.l...

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

80. 水平滚动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.HScrollBar }) public hscroll: Laya.HScrollBar; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.hscroll.sk...

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