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

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

131. Laya3D场景加载问题 [ 62%]

...试内容:加载3D场景   代码如下: export default class TestUI extends ui.test.TestSceneUI {     private resource: Array<String> = [         "gate/Conventional/Test.ls",     ];     constructor() { super(); }     onAwake(): void {         Laya.loader.create(this.resou...

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

132. 基础文本 · LayaAir3.0文档 · LAYABOX [ 62%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onStart(): voi...

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

133. 导航容器组件 · LayaAir3.0文档 · LAYABOX [ 61%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.ViewStack }) public viewstack: Laya.ViewStack; @property({ type: Laya.Tab }) public tab: Laya.Tab; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方...

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

134. socket.sent [ 61%]

...e.addChild(new Btn1 ());//加入舞台 } } new Game();       class Btn1 extends ui.v1UI{ public socket: Laya.Socket; public byte: Laya.Byte; constructor(){ super(); this.btn1.on(Laya.Event.CLICK,this,this.Btn1On); } Btn1On():void{ // socket.connect(“192.168.0.1.133”,8899); console.log("kjk"...

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

135. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 61%]

...fo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateIte...

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

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

...分享 微博 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

137. List组件拖动浏览时item会出现重叠的现象 [ 61%]

... laya.ui.Image; import Label = Laya.Label; export class ListDataSourceItem extends Box { public static WID: number = 200; public static HEI: number = 20; // private _img: Image = null; private _lb:Label = null; constructor() { super(); this._lb = new Label(); this._lb.size(ListDataSourceItem.WID, Li...

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

138. viewportPointToRay产生的射线始终有偏差,是为什么? [ 61%]

...Vector4; import WebGLContext = Laya.WebGLContext; export class SceneScript extends Script { private _originPosition:Vector3 = new Vector3(0, -1, 1); private _phasorSpriter3D:PhasorSpriter3D; private _color:Vector4 = new Vector4(1, 0, 0, 1); private _point:Vector2 = new Vector2(); private _camera:Cam...

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

139. 请问laya有没有类似翻页容器(pageView)的组件? [ 60%]

...fo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateIte...

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

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

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