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

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

91. 网络和格式-GET [ 57%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.connect(); this.showLogger(); } connect() { const HttpRequest = Laya.HttpRequest, Event = Laya.Event; hr = new HttpRequest(); hr.once(Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Event.CO...

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

92. 2D物理-桥 [ 57%]

...Laya.Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_AUTO; Laya.Laya.stage.bgColor = "#232628"; this.createBridge(); this.eventListener(); } createBridge() { const startPosX = 250, startPosY = 450; let ground = new Laya.Sprite(); Laya.Laya.stage.addChild(ground); let groundBody = new Laya.RigidBody();...

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

93. VR场景-VR地球 [ 57%]

...; directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var earth = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/earth/EarthPlanet.lh")); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res...

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

94. 文本-滚动文本 [ 56%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; createText(); })(); function createText() { txt = new Text(); txt.overflow = Text.SCROLL; txt.text = "Layabox是HTML5引擎技术提供商与优秀的游戏发行商,面向AS/JS/TS开发者提供HTML5开...

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

95. 分享一个Shader版的CoolDown实现 [ 56%]

...          attribute vec2 texcoord; \             attribute vec4 color; \             uniform vec2 size; \             uniform mat4 mmat; \             varying vec2 v_texcoord; \             varying vec4 v_color; \             void main(){ \             ...

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

96. 鼠标交互-键盘交互 [ 56%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.listenKeyboard(); this.createLogger(); Laya.timer.frameLoop(1, this, this.keyboardInspector); } listenKeyboard() { const Event = Laya.Event; // 用Set实现更好...

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

97. layabox能不能由xml生成节点 [ 56%]

...lt;Label width="746" name="bg" height="44" bgColor="#e5ba8a" editorInfo="compId=72"/>' + '<Label y="0" x="0" width="32" visible="false" valign="middle" text="1" name="id" hei...

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

98. 文本-滚动文本 [ 56%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createText(); } createText() { const Text = Laya.Text, Event = Laya.Event; this.txt = new Text(); Laya.stage.addChild(this.txt); this.txt.overflow = Text.SCROLL; this.txt.text = "Layabox是HTML5引擎...

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

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

...esText.pos(0, compassImg.y + 400); degreesText.fontSize = 100; degreesText.color = "#FFFFFF"; } // 方位指示器指向当前所朝方位。 function createDirectionIndicator() { directionIndicator = new Sprite(); Laya.stage.addChild(directionIndicator); directionIndicator.alpha = 0.8; directionInd...

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

100. 动画-旧版骨骼动画 [ 55%]

...; directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); var plane = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/Zombie/old/Plane.lh")); var zombie = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/Zom...

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