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

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

21. 照相机-正交相机 [ 78%]

...onkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { layaMonkey.transform.localScale = new Laya.Vector3(3, 3, 3); //转换2D屏幕坐标系统到3D正交投影下的坐标系统 camera.convertScreenCoordToOrthographicCoord(pos, _translate); layaMonkey.transform.po...

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

22. 动画-新版骨骼动画 [ 78%]

...el/Zombie/new/Zombie.lh")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, function () { //获取Animator动画组件 zombieAnimator = zombie.getChildAt(0).getComponentByType(Laya.Animator); loadUI(); }); function loadUI() { var clipName = ["walk","attack","left_fall","right_fall","back_fall"]; var ...

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

23. 设置遮罩(JavaScript-LayaAir基础篇(JS)-位图) [ 78%]

...创建一个MaskDemo.js入口程序,编写代码如下: ```javascript (function() { var Sprite = Laya.Sprite; var Texture = Laya.Texture; var Handler = Laya.Handler; var Res; var img; (function() { Laya.init(1136,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //资源路径 Res = "...

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

24. 构建android laya3d报错 [ 78%]

...ollisionObject' of undefined 导微信小程序报错window.focus is not a function runtime运行报错! 用了ByteArray的zlib.min.js后报错 自定义场景类导出layaMaxUI.ts有前缀导致报错 启动引擎报错 mPlugin.game_plugin_init(3); laya3D动画无法播放 播放背景音乐的...

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

25. 在一个页面多放几个iframe,里面使用引擎,一般3-4个就报错了 [ 77%]

...ontexts provided (6) is greater than or equal to the maximum bound (6). at Function.<anonymous> (<anonymous>:10787:310) at Function.get (<anonymous>:168:66) at Function.WebAudioSound.initWebAudio (<anonymous>:10773:21) at Function.Browser.__init__ (<anonymous>:6184:57) ...

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

26. 灯光-点光 [ 77%]

...onkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 75, 110); }); var _position = new Laya.Vector3(); var _quaternion = new Laya.Qua...

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

27. 问下大家,laya3D现在有没有好用的物理引擎库? [ 77%]

...10:11 @181*****859:这个是js文件变量声明的问题 你把第一行 !function(e){if("object"==typeof exports&& 改成 var CANNON; !function(e){if(e&&e!=="undefined"){CANNON=e()}; if("object"==typeof exports&& 试试。 181*****859 • 2018-...

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

28. 高级应用-Laya3D与网页混合 [ 77%]

...t; import common.CameraMoveScript; public class Laya3DCombineHtml { public function Laya3DCombineHtml() { __JS__("var div = document.createElement('div')"); __JS__("div.innerHTML = '此内容来源于HTML网页, 可直接在html代码中书写 - h1标签'"); __JS__("document.body.appendChild(div)");...

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

29. 材质-BlinnPhong材质加载 [ 77%]

...aya.Quaternion(0.7071068, 0, 0, -0.7071067); Laya.timer.frameLoop(1, this, function () { layaMonkey.transform.rotate(this.rotation, false); });class BlinnPhongMaterialLoad { private rotation:Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = ...

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

30. 自定义shader-shader预编译 [ 76%]

...tils.Stat; import laya.webgl.WebGL; public class ShaderPrecompile { public function ShaderPrecompile() { Laya3D.init(0, 0, true); //开启Shader编译调试模式,可在输出宏定义编译值。 ShaderCompile3D.debugMode = true; var sc:ShaderCompile3D = ShaderCompile3D.get("SIMPLE"); //部分低...

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