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

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

51. 文本-单行输入 [ 81%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; createInput(); })(); function createInput() { var inputText = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >...

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

52. 文本-字数限制 [ 81%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Input = Laya.Input; let inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(3...

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

53. 文本-禁止编辑 [ 81%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; createInput(); })(); function createInput() { var inputText = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >...

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

54. 文本-单行输入 [ 81%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Input = Laya.Input; var inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(3...

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

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

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.loader.load(compassImgPath, Handler.create(this, init)); })(); function init() { // 创建罗盘 createCompass(); // 创建方位指示器 createDirectionIndicator(); // ...

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

56. 文本-禁止编辑 [ 81%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Input = Laya.Input; let inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(3...

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

57. 文本-多行输入 [ 81%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; createInput(); })(); function createInput() { var inputText = new Input(); // 移动端输入提示符 inputText.prompt = "Type some word..."; //多行...

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

58. 输入设备-指南针 [ 81%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.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; // 创建...

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

59. 文本-多行输入 [ 80%]

...); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Input = Laya.Input; let inputText = new Input(); Laya.stage.addChild(inputText); //多行输入 i...

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

60. 3D中摄像机绕物体旋转该如何实现? [ 80%]

...an = true; public canScale: boolean = true; /// <summary> /// Around center. /// </summary> //public target: Transform3D; public AroundPos: Vector3 = new Vector3(); /// <summary> /// Settings of mouse button, pointer and scrollwheel. /// </summary> public mouseSettings: Mouse...

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