大约有 839 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0081 秒)
Laya_社区(417) Laya2.0_文档(80) Laya_示例(71) Laya3.0_api(66) Laya2.0_示例(66) Laya2.0_api(63) laya_api(58) Laya3.0_文档(18)
...4657 赞同来自: (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var WebGL = Laya.WebGL; var sp; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(740, 400, WebGL); Laya.stage.alignV = Stage.ALI...
来源: Laya_社区 发布时间: 20170711
...度条。 **示例代码:** ```javascript package { import laya.display.Stage; import laya.ui.ProgressBar; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_ProgressBar { private var progressBar:ProgressBar; public function UI_ProgressBar() { // 不支持WebGL时自动切换至Ca...
来源: Laya2.0_文档 发布时间: 20210715
...0开始,这样也不行 this.dragRegion = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height);该怎么处理呢 2018-05-30 0 2 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 什么区域。 2018-05-31 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...
来源: Laya_社区 发布时间: 20180530
...ate(this, function(){ container = new Laya.Sprite(); var x = 0,y =80; Laya.stage.addChild(container); for(var i=0;i<1200;i++){ var role = new Laya.Sprite(); x = x+0.1; y = y+0.1 role.x = x; role.y = y; role.loadImage('comp/bg.png'); container.addChild(role); var role2 = new Laya.Sprite(); x = x+0...
来源: Laya_社区 发布时间: 20180122
...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以...
来源: Laya2.0_api 发布时间: 20190513
...内存,以字节为单位。Stat loopCount : int = 0[static] 主舞台 Stage 渲染次数计数。 Stat octreeNodeCulling : int = 0[static] 八叉树节点剔除次数。Stat onclick : Function[static] [write-only] 点击性能统计显示区域的处理函数。 Stat renderBatches : int...
来源: Laya2.0_api 发布时间: 20190513
...ndEvents(); // 监听全局事件 Laya.stage.on("DIALOG_SHOW", this, this.disable); Laya.stage.on("DIALOG_HIDE", this, this.enable); } onDestroy() { // 移除事件监听 Laya.stage.off("DIALOG_SHOW", this, this.di...
来源: Laya_社区 发布时间: 20251125
...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以...
来源: Laya2.0_api 发布时间: 20190513
...aya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/color.png", Handler.create(this,onLoadComplete));//加载资源。 } private function...
来源: Laya_社区 发布时间: 20171120
...对应的3D世界的路径数据 ```typescript //监听鼠标抬起 Laya.stage.on(Laya.Event.MOUSE_UP, this, function() { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCount].x, this.path[this.curPathIndex++ % this.pointCount].z, this.startPoint...
来源: Laya2.0_文档 发布时间: 20210714