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

大约有 148 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0056 秒)

51. laya里的所有单例都没有初始值 [ 73%]

...内容相关的链接 提交 7 个回复 无所畏惧 赞同来自: public function Main() {                if (window["Laya3D"]) window["Laya3D"].init(GameConfig.width, GameConfig.height);             else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]);  ...

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

52. 自定义shader-简单shader [ 73%]

...var rotation = new Laya.Vector3(0, 0.01, 0); Laya.timer.frameLoop(1, this, function () { layaMonkey.transform.rotate(rotation, false); }); function initShader() { var attributeMap = { 'a_Position': Laya.VertexElementUsage.POSITION0, 'a_Normal': Laya.VertexElementUsage.NORMAL0 }; var uniformMap = { '...

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

53. Sprite3D-Sprite3D变换 [ 73%]

...inModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey1 = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey2 = Laya.Sprite3D.instantiate(layaMonkey1, scene, false, new Laya.Vector3(0, 0, 0)...

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

54. Sprite3D-Sprite3D加载 [ 73%]

...s.Stat; import common.CameraMoveScript; public class Sprite3DLoad { public function Sprite3DLoad() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); var scene:Scene = Laya.stage.addChild(new Scene()) as Scene; scene.ambientCol...

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

55. 限制区域拖动效果,为什么会无法限制呢? [ 73%]

...ndler = Laya.Handler; var WebGL = Laya.WebGL; var Handler = Laya.Handler  function GolfMainUI() { GolfMainUI.super(this)  var dragRegion; showDragRegion(); this.golfBall.x = Laya.stage.width / 2; this.golfBall.y = Laya.stage.height / 2; this.golfBall.on(Event.MOUSE_DOWN, this, onStartDrag)  funct...

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

56. HTMLDIVElement设置innerHTML时报错 [ 73%]

...l.contextWidth, html.contextHeight); Laya.stage.addChild(html); setTimeout(function() { html.innerHTML = ''; }, 300);此问题是由于在新版中改变了laya.html.js的HTMLDivElement中width的set方法 之前的版本中,set方法为/** *获取对象的宽 */ __getset(0,__proto,'width',functio...

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

57. 求HTTP相关的文档或者例子谢谢了 [ 72%]

求HTTP相关的文档或者例子谢谢了 __proto__.wishComp=function(e){}         __proto__.checkList=function(){             this.publicloader=new URLLoader();             this.publicloader.dataFormat=/*iflash.net.URLLoaderDataFormat.VARIABLES*/"variables";        ...

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

58. 高级应用-渲染纹理 [ 71%]

...icModel/LayaPlane/LayaPlane.lh" ], Laya.Handler.create(this, onComplete)); function onComplete() { setMaterials(scene.getChildByName("scene")); layaPlane.transform.localPosition = new Laya.Vector3(0, 0.5, -1); Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, functio...

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

59. 高级应用-实时阴影 [ 71%]

...)); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); var _direction = directionLight.direction; Laya.Vector3.transformQuat(_direction, _quaternion, _direction); directionLight.direction = _direction...

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

60. Laya截图3D场景相关模型,导致模型透视! [ 70%]

...问题条件,有一个(.lh)后缀模型资源。 具体代码如下: (function () { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var resUrl = "../bin/res/modles/role_48_lurenyi/role_48_lurenyi.lh"; var scene = Laya.stage.a...

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