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

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

931. Spine适配版(JavaScript-LayaAir基础篇(JS)-动画基础) [ 63%]

...ivate index: number = -1; constructor() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } private startFun(): void { //创建动画模板 this.templet = new SpineTempletBinary(); this.templet...

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

932. 画了一个封闭的曲线,获取鼠标点击处的像素,为何坐标对不上导致拿不到正确位置的Texture? [ 63%]

....mouseY); var tex:Texture = new Texture(hc); trace(tex.width + "---" + tex.height + "---" + getPixel(tex)); /*获取所画曲线鼠标点击处的像素,为何坐标对不上? 导致无法拿到正确位置的Texture*/ /*var spr:Sprite = new Sprite(); spr.graphics.drawTexture(tex); this.addChild...

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

933. laya.ui.TextArea [ 63%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite editable : Boolea...

来源: Laya2.0_api 发布时间: 20190513

934. 树状列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

..., 300); tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; tree.bgColor = "#d25454"; this.owner.addChild(tree); } } class Item extends Laya.Box { constructor() { super(); this.right = 0; this.left = 0; var selectBox: Laya.Clip = new Laya.Clip("resources/tre...

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

935. Config3D_API3.0 [ 63%]

...使用BVH裁剪 Methods Static setResolution setResolution(width: number, height: number): void Defined in Config3D.ts:59 设置分辨率大小(并不是实际渲染分辨率) Parameters width: number height: number Returns void Globals "Config3D" Config3D BVH_Min_Build_nums BVH_limit_size BVH_m...

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

936. laya.ui.TextArea [ 63%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component editable : Boolean 设置可编辑状态。 T...

来源: laya_api 发布时间: 20170929

937. 1.70beta Dialog增加动画后第二次执行popup不显示弹窗 [ 63%]

...= Laya.Handler; var WebGL = Laya.WebGL; var DIALOG_WIDTH = 220; var DIALOG_HEIGHT = 275; var CLOSE_BTN_WIDTH = 43; var CLOSE_BTN_PADDING = 5; var assets; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = St...

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

938. laya.ui.TextInput [ 63%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component  editable : Boolean 设置可编辑状态。...

来源: laya_api 发布时间: 20170929

939. 屏幕适配-屏幕适配 [ 63%]

...["noscale", "exactfit", "showall", "noborder", "full", "fixedwidth", "fixedheight"]; //当前适配模式索引 var index = 0; //全局文本信息 var txt; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(1136, 640); //设置适配模式 Laya.stage.scaleMode = "noscale"; //设置...

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

940. 刚刚接触2天layaair,有几个问题请教。 [ 63%]

...化引擎 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height); else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]); Laya["Physics"] && Laya["Physics"].enable(); Laya["DebugPanel"] && Laya["DebugPanel"].enable(); Laya.stage.scaleMode = GameConfig.scal...

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