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

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

1. UI-RadioGroup [ 100%]

...r Handler = Laya.Handler; var WebGL = Laya.WebGL; var SPACING = 150; var X_OFFSET = 200; var Y_OFFSET = 200; var skins; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scale...

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

2. UI-CheckBox [ 98%]

...MOUNT = 3; var HORIZONTAL_SPACING = 200; var VERTICAL_SPACING = 100; var X_OFFSET = 100; var Y_OFFSET = 50; var skins; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleM...

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

3. UI-Input [ 88%]

...GL; var SPACING = 100; var INPUT_WIDTH = 300; var INPUT_HEIGHT = 50; var Y_OFFSET = 50; var skins; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SH...

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

4. 射线检测-放置物体 [ 81%]

...aya.stage.addChild(label); var _position = new Laya.Vector3(0, 0, 0); var _offset = new Laya.Vector3(0, 0.25, 0); //鼠标事件 Laya.stage.on(Laya.Event.MOUSE_UP, this, function () { if (_outHitInfo.distance !== -1) { var sphere = scene.addChild(new Laya.MeshSprite3D(new Laya.SphereMesh(0.25, 16, 1...

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

5. 缓动-逐字缓动 [ 81%]

...ge.bgColor = "#232628"; setup(); })(); function setup() { var w = 400; var offset = Laya.stage.width - w >> 1; var endY = Laya.stage.height / 2 - 50; var demoString = "LayaBox"; for (var i = 0, len = demoString.length; i > 1; var endY: number = Laya.stage.height / 2 - 50; var demoString: string = "L...

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

6. 输入设备-地图 [ 66%]

...,0)); map.addOverlay(marker); var label = new BMap.Label("当前位置", { offset: new BMap.Size(-15, 30) }); marker.setLabel(label); } function createInfoText() { infoText = new Text(); Laya.stage.addChild(infoText); infoText.fontSize = 50; infoText.color = "#FFFFFF"; infoText.size(Laya.stage.width...

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

7. 性能测试-虫子(慎入) [ 51%]

...umber; public var turningSpeed:Number; public var speed:Number; public var offset:Number; }

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

8. 射线检测-点击行走 [ 47%]

...l.fontSize = 50; label.color = "#40FF40"; Laya.stage.addChild(label); var _offset = new Laya.Vector3(0, 0.25, 0); var _upVector3 = new Laya.Vector3(0, 1, 0); var _vector3 = new Laya.Vector3(); //鼠标事件 Laya.stage.on(Laya.Event.MOUSE_UP, this, function () { if (_outHitInfo.distance !== -1) { La...

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