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

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

2201. BlinnPhong材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 64%]

... Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置材质纹理 material.albedoTexture = texture; })); //material.albedoTexture earth2.meshRenderer.material = material; ``` ![](img/4.png)(图4) ##### 法线贴图 **Normal maps(法线...

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

2202. 点击区域问题 [ 64%]

...gle(-50,-100,100,100); sp.on(laya.events.Event.CLICK,this,this.spHandler); function spHandler() {     sp.graphics.clear();     var rc:number = Math.floor(Math.random()*0xffffff);     sp.graphics.drawRect(-50,-100,100,100,"#"+rc); } 这样多包几层,点击区域就会怪怪的,绘...

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

2203. 1.7.9LayaIDE 发布出现Cannot find module 'colors'错误 [ 64%]

...错误   module.js:472 throw err; ^ Error: Cannot find module 'colors' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object.<anonymous> (/private/var/folders/g5/h...

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

2204. 多摄像机窗口的使用(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 64%]

.../threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(null, function(sp) { //将模型加到场景上 var layaMonkey = scene.addChild(sp); })) ``` 编译运行上述代码,运行效果如图6。开发者们同时也可以测试,在单摄像机下时,DrawCall与三角面数会少...

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

2205. 微信开放数据域(TypeScript-小游戏适配文档-微信小游戏) [ 64%]

....load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将json投促函到子域 Laya.MiniAdpter.sendJsonDataToDataContext("json/rew...

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

2206. 【求助】关于Cannot read property 'visible' of undefined问题 [ 64%]

...operty 'visible' of undefined问题 我的代码是这样子的: private function showFoods():void{ foodSprite = new Sprite(); Laya.stage.addChild(foodSprite); this.index = 0; foodsList = new Array(); foodsList.push(new Food("菜品1", "1", 0)); foodsList.push(new Food("菜品2", "2", 1)); foodsLi...

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

2207. 粒子-粒子演示1 [ 64%]

....webgl.WebGL; public class Particle_T1 { private var sp:Particle2D; public function Particle_T1() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleM...

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

2208. 粒子-粒子演示2 [ 64%]

....webgl.WebGL; public class Particle_T2 { private var sp:Particle2D; public function Particle_T2() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleM...

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

2209. 粒子-粒子演示3 [ 64%]

....webgl.WebGL; public class Particle_T3 { private var sp:Particle2D; public function Particle_T3() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleM...

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

2210. Web Storage数据存储(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 64%]

....LocalStorage; import laya.utils.Browser; public class LayaSample { public function LayaSample() { Laya.init(100,100); LocalStorage.setItem("key","hello"); LocalStorage.setItem("data","hello"); var data:Object = {"index":0,"index1":1}; LocalStorage.setJSON("item",data);//直接传入Object,接口...

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