大约有 1,723 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
Laya_社区(1004) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(49)
...io number 设备像素比 screenWidth number 屏幕宽度,单位px screenHeight number 屏幕高度,单位px windowWidth number 可使用窗口宽度,单位px windowHeight number 可使用窗口高度,单位px statusBarHeight number 状态栏的高度,单位px(LayaNative中没有小游戏...
来源: Laya3.0_文档 发布时间: 20260128
...有效处理与环境的碰撞。开发者可以通过radius(半径)和height(高度)属性调整这个胶囊体的尺寸,通过centerOffset属性调整胶囊体在角色本地坐标系中的位置偏移。 角色控制器内置了多种实用功能来处理常见的角色移动场景。...
来源: Laya3.0_文档 发布时间: 20251010
...表位置 list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // 使用但隐藏垂直滚动条 list.vScrollBarSkin = ""; //滚动在头或底回弹时间 list.scrollBar.elasticBackTime = 500; //滚动在头或底最大距离 list.scrollBar.elastic...
来源: Laya2.0_文档 发布时间: 20210715
...sprite.graphics.drawTexture(rankTexture,0,0,rankTexture.width,rankTexture.height); // console.log("再次往开放域发请求"); // openDataContext.postMessage({ // cmd:2, ...
来源: Laya_社区 发布时间: 20180529
...function Laya(){} Laya.__init=function(_classs){} Laya.init=function(width,height,__plugins){} Laya.alertGlobalError=function(value){} Laya.enableDebugPanel=function(debugJsPath){} Laya.stage=null; Laya.systemTimer=null; Laya.startTimer=null; Laya.physicsTimer=null; Laya.updateTimer=null; Laya.lateT...
来源: Laya_社区 发布时间: 20200426
...开放数据域的样式和布局 let style = { container: { width: 400, height: 200, backgroundColor: "#ffffff", justifyContent: "center", alignItems: "center", }, testText: { color: "#ffffff", width: "100%", height: "100%", lineHeight: 200, fontSize: 40, textAlign: "center", }, // 文字的最终...
来源: Laya3.0_文档 发布时间: 20251010
...eatY = 4; list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // 设置List的垂直滚动 list.scrollType = Laya.ScrollType.Vertical; // 设置List的垂直滚动皮肤,不设置或者""就没有滚动条皮肤 list.vScrollBarSkin = ""; // 开...
来源: Laya3.0_文档 发布时间: 20251010
...iewport.y; this._rayViewport.width = ILaya.stage._width; this._rayViewport.height = ILaya.stage._height; Picker.calculateCursorRay(point, this._rayViewport, this._projectionMatrix, this.viewMatrix, null, out); } 参照3D-RPG项目,我们加上一段代码,当鼠标点击屏幕时,会发射一...
来源: Laya3.0_文档 发布时间: 20251010
....TextFormat; import flash.utils.Timer; [SWF(width = "1000", height = "618", backgroundColor = "0x0", frameRate = "30")] public class iLoader extends Sprite { public static var PATH:String = ""; public static var VCM:Function; pu...
来源: Laya_社区 发布时间: 20200217
...e { import flash.display.Sprite; import flash.events.Event; [SWF(width=960,height=640,backgroundColor=0x0,frameRate=60)] public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); this.init(); } private function init(e:Event...
来源: Laya_社区 发布时间: 20151218