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

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

71. ShaderPass介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 78%]

...ayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7...

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

72. 性能测试-骨骼 [ 78%]

...e: Loader.IMAGE }, { url: mAniPath, type: Loader.BUFFER }], Handler.create(this, onAssetsLoaded)); } init(); function onAssetsLoaded() { var tTexture = Loader.getRes(mTexturePath); var arraybuffer = Loader.getRes(mAniPath); mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); ...

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

73. 物理刚体(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 78%]

...script //加载模型 Sprite3D.load("Conventional/shoot.lh",Handler.create(this,function(sp:Sprite3D):void{ //获取到Meshsprite3d var cube:MeshSprite3D = scene.addChild(sp.getChildAt(0)) as MeshSprite3D; //获取刚体 var cubeRigid:Rigidbody3D = cube.getComponent(Rigidbody3D); })); ```

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

74. 性能测试-骨骼 [ 78%]

...e: Loader.IMAGE }, { url: mAniPath, type: Loader.BUFFER }], Handler.create(this, this.onAssetsLoaded)); } onAssetsLoaded() { const Loader = Laya.Loader, Templet = Laya.Templet, Event = Laya.Event; let tTexture = Loader.getRes(mTexturePath); let arraybuffer = Loader.getRes(mAniPath); mFactory = new T...

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

75. 其他引擎的Demo-Example_04 [ 78%]

...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.createText(); this.start(); } start() { const Sprite = Laya.Sprite; for (var i = 0; i w) { stars[i].x = stars[i].x - w; } else if (stars[i].x h) { stars[i].y = stars[i].y - h; } else if (stars[i].y = []; private w:number...

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

76. ComboBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 78%]

....bgColor = "#232628"; //加载资源 Laya.loader.load(skin, Handler.create(this, onLoadComplete)); } /***加载资源完成***/ private function onLoadComplete(e:*=null):void { //实例化下拉列表 comboBox= new ComboBox(skin, "item0,item1,item2,item3,item4,item5"); //按钮标签字体大小 com...

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

77. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 77%]

...3D.load("LayaScene_SceneMonkey/Conventional/SceneMonkey.ls",Handler.create(this,function(res:Scene3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture...

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

78. 摄像机的背景色和天空盒(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 77%]

...eMaterial.load("res/threeDimen/skyBox/skyBox1/skyBox.lmat", Handler.create(this, function(mat:BaseMaterial):void { //设置相机的清除标识为天空盒 camera.clearFlag = BaseCamera.CLEARFLAG_SKY; //获取相机的天空渲染器 var skyRenderer:SkyRenderer = camera.skyRenderer; //创建天空...

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

79. 自定义对话框设置zOrder后,关闭时报错 [ 77%]

... CountdownBar = (function () { function countdownBar() { PauseDialog.super(this); this.name = 'CountdownBar'; Laya.stage.addChild(this); this.zOrder = 100; this.count = 4; this.countLabel.text = '' + this.count; Laya.timer.loop(1000, this, this.countdown); } Laya.class(countdownBar, "CountdownBar", ...

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

80. args.slice is not a function [ 77%]

...序报错window.focus is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function 用微信开发者调试的时候出现document.createTextNode is not a function api readFile success callback function...

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