大约有 6,579 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0241 秒)
Laya_社区(5232) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(101) Laya2.0_api(67) laya_api(64)
...0, 0, 1, 0, //A ]; //创建一个颜色滤镜对象,红色 var redFilter = new ColorFilter(redMat); // 赤化猩猩 var redApe = createApe(); redApe.filters = [redFilter]; var firstChild = Laya.stage.getChildAt(0); redApe.x = firstChild.x + apeTexture.width; redApe.y = firstChild.y; } function grayi...
来源: Laya_示例 发布时间: 20251130
...版的加载lm文件在29-43行、 // 载入并显示鱼模型 var fish = new Laya.MeshSprite3D(Laya.Mesh.load("fish/denglongyu/FBXtoolsdaochu/denglongyu.lm")); scene.addChild(fish); var fishmaterial = new Laya.StandardMaterial(); //漫反射贴图 fishmaterial.diffuseTexture = Laya.Texture2D.load("...
来源: Laya_社区 发布时间: 20171206
...D鼠标点击案例),来得到一个鼠标点击坐标this.originRay = new Laya.Ray(this.sceneCamera.transform.position, new Laya.Vector3(0, 0, 0)) let pointVec2 = new Laya.Vector2( ) pointVec2.x = Laya.MouseManager.instance.mouseX; pointVec2.y = Laya.MouseManager.instance.mouseY; this.sceneCame...
来源: Laya_社区 发布时间: 20200617
...有事件可以检测声音是否播放结束,如: var _sound:Sound = new Sound( ); _sound.load(new URLRequest("声音地址")); var _channel:Channel = new Channel(); _channel=_sound.play( ); _channel.addEventListener(Event.SOUND_COMPLETE,onComplete); 而Laya 中用什么事件可以检测声音...
来源: Laya_社区 发布时间: 20170330
...or (let i = 0; i < 8; i++) { let radis = i * 2 * Math.PI / 8; rays[i] = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(Math.cos(radis), 0, Math.sin(radis))); let hitResult = new Array(); this.mainScene.physicsSimulation.rayCastAll(rays[i], hitResult); console.log(rays[i], hitResult); }...
来源: Laya_社区 发布时间: 20190403
...this.PathBg); Laya.stage.addChild(this.spBg); //创建动画 this.aniFly = new Animation(); this.aniFly.loadAtlas(this.PathFly); this.aniFly.play(); this.aniFly.pos(250, 100); Laya.stage.addChild(this.aniFly); //创建按钮 this.btn = new Sprite().size(205, 55); this.btn.graphics.drawRect(0, 0, thi...
来源: Laya_示例 发布时间: 20251130
scrollRect 改变后子对象的鼠标事件失效 bg=new Laya.Sprite(); Laya.stage.addChild(bg); bg.size(800,600); bg.loadImage("aa_1.Png",0,0,800,600); poly=new Laya.Sprite(); bg.addChild(poly); poly.size(36,36); poly.pivot(18,18); poly.loadImage("SafeExitL.png",0,0,36,36); poly.pos(400,300); pol...
来源: Laya_社区 发布时间: 20180823
...te(this, onLoadComplete)); })(); function onLoadComplete() { progressBar = new ProgressBar("../../res/ui/progressBar.png"); progressBar.width = 400; progressBar.x = (Laya.stage.width - progressBar.width) / 2; progressBar.y = Laya.stage.height / 2; progressBar.sizeGrid = "5,5,5,5"; progressBar.change...
来源: Laya_示例 发布时间: 20251130
...150像素 var layoutRadius = 150; var radianUnit = Math.PI / 2; apesCtn = new Sprite(); Laya.stage.addChild(apesCtn); // 添加4张猩猩图片 for (var i = 0; i < 4; i++) { var ape = new Sprite(); ape.loadImage("../../res/apes/monkey" + i + ".png"); ape.pivot(55, 72); // 以圆周排列猩猩 ape.p...
来源: Laya_示例 发布时间: 20251130
...svg>'; var DOMURL = window.URL || window.webkitURL || window; var img = new Image(); var svg = new Blob([data], {type: 'image/svg+xml'}); var url = DOMURL.createObjectURL(svg); img.src = url; img.style.position ="absolute"; img.style.zIndex = 99999 document.body.appendChild(img); 怎么运行上...
来源: Laya3.0_文档 发布时间: 20251010