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

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

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

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

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

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

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

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

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

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

136. 请问laya有没有类似翻页容器(pageView)的组件? [ 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_社区 发布时间: 20170215

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

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

138. 重复背景,全方向地图拖动Demo [ 61%]

...age  var分别: map0,map1,map2,map3 背景图宽高 1800 class WorldPage extends ui.WorldPageUI{ constructor (x,y) { super() this.maxX = 149850 this.maxY = 97500 this.offsetX = x * 150 this.offsetY = y * 150 this.downMouseX = 0 this.downMouseY = 0 Laya.loader.load(['bg/world_bg.jpg']) Laya.stage.o...

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

139. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 60%]

...是IDE篇的。   我试着用代码实现物理效果class CollisionBoll extends Laya.Sprite { private _boll1:Laya.Sprite; constructor() { super(); //物理模块 this._boll1 = new Laya.Sprite(); this.addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_close.png'); let box:l...

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

140. Laya2.7.1 射线提示rayCast未定义 [ 60%]

Laya2.7.1 射线提示rayCast未定义 export default class click3d extends Laya.Script3D{ constructor() { super(); //创建场景 this.scene = Laya.stage.addChild(new Laya.Scene3D()); //添加相机 this.camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))); this.camera.transform.translate(...

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