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

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

101. UI-Input [ 55%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; skins = ["../../res/ui/input (1).png", "../../res/ui/input (2).png", "../../res/ui/input (3).png", "../../res/ui/input (4).png"]; Laya.loader.load(skins, Handler.create(this, onLoadComplete)); //加载资...

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

102. 输入设备-指南针 [ 55%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(compassImgPath, Handler.create(this, this.init)); } init() { const Gyroscope = Laya.Gyroscope, Event = Laya.Event; // 创建罗盘 this.createCompass(); // 创建方位指示器 this.create...

来源: Laya2.0_示例 发布时间: 20240930

103. UI-Input [ 55%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); skins = ["res/ui/input (1).png", "res/ui/input (2).png", "res/ui/input (3).png", "res/ui/input (4).png"] Laya.loader.load(skins, Handler.create(this, this.onLoadComplete)); } onLoadComplete() {...

来源: Laya2.0_示例 发布时间: 20240930

104. 高级应用-实时阴影 [ 55%]

...; directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); //灯光开启阴影 directionLight.shadow = true; //可见阴影距离 directionLight.shadowDistance = 3; //生成阴影贴图尺寸 directionLight.shadowResolution = 2048; //生成阴影...

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

105. 输入设备-地图 [ 55%]

...ew Text(); Laya.stage.addChild(infoText); infoText.fontSize = 50; infoText.color = "#FFFFFF"; infoText.size(Laya.stage.width, Laya.stage.height); } // 更新设备位置 function updatePosition(p) { // 转换为百度地图坐标 var point = new BMap.Point(p.longitude, p.latitude); // 把原始坐...

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

106. Tree属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 54%]

...treeItem", "width": "150", "left": "33", "height": "22", "name": "label", "color": "#ffff00", "right": "0", "x": "33"}}, {"type": "Clip", "props": {"x": "0", "name": "arrow", "y": "5", "skin": "ui/clip_tree_arrow.png", "clipY": "2"}}], "type": "Box", "props": {"name": "render", "right": "0", "left":...

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

107. Tree属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 54%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; var res: Array = [ "res/ui/vscroll.png", "res/ui/vscroll$bar.png", "res/ui/vscroll$down.png", "res/ui/vscroll$up.png", "res/ui/tree/clip_selectBox.png", "res/ui/tree/clip_tree_folder.png", "res/ui/tree/clip...

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

108. 绘制图形 · LayaAir3.0文档 · LAYABOX [ 54%]

...寸为像素大小。 Line Width:绘制矩形的边框宽度值。 Line Color:绘制矩形的边框颜色。 Fill Color:矩形填充的颜色。 动图2-2演示了这些属性的操作过程: (动图2-2) 2.2 代码绘制矩形 LayaAir引擎中的 drawRect() 方法用于绘制矢量矩形...

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

109. 输入设备-地图 [ 54%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; // 本地运行,需要在index.html中引用百度地图API文件 this.createDom(); this.initMap(); this.createInfoText(); let successHandler = new Handler(this, this.updatePosition); let errorHandler = n...

来源: Laya2.0_示例 发布时间: 20240930

110. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 53%]

...false, false]; private init() { // 设置背景色为场景高度 this.box_color_bg.height = Laya.stage.height; } onEnable() { this.init(); // 判定是注册还是忘记密码 if (GameData.I.isReg) { this._regMode(); } else { this._forgetMode(); } // 添加取消事件 this.lb_cancel.on(Laya.Event....

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