大约有 2,626 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0078 秒)
Laya_社区(2116) Laya2.0_文档(119) Laya3.0_api(106) Laya_示例(84) Laya2.0_api(57) Laya2.0_示例(55) laya_api(53) Laya3.0_文档(36)
...irection = new Laya.Vector3(0, -1.0, -1.0); var grid = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/grid/plane.lh")); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, th...
来源: Laya_示例 发布时间: 20241123
...spotLight.range = 6.0; spotLight.spot = 32; var grid = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/grid/plane.lh")); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, th...
来源: Laya_示例 发布时间: 20241123
...t.color = new Laya.Vector3(0.7, 0.6, 0.6); var plane = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/Zombie/new/Plane.lh")); var zombie = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/Zombie/new/Zombie.lh")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, func...
来源: Laya_示例 发布时间: 20241123
...更高效。let bgPath = "res/bg2.png", maskPath = "res/mask.png"; class Sprite_MagnifyingGlass { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.al...
来源: Laya2.0_示例 发布时间: 20241123
...as3支持,但是不被LayaAir引擎支持的示例:** ```java var sp:Sprite=new Sprite(); sp.graphics.beginFill(0xFFFF00); sp.graphics.drawRect(0,0,200,200); sp.graphics.endFill(); addChild(sp); var mask:Sprite=new Sprite(); mask.graphics.beginFill(0xFF0000); mask.graphics.drawCircle(0,0,50); ma...
来源: Laya2.0_文档 发布时间: 20191206
...as3支持,但是不被LayaAir引擎支持的示例:** ```java var sp:Sprite=new Sprite(); sp.graphics.beginFill(0xFFFF00); sp.graphics.drawRect(0,0,200,200); sp.graphics.endFill(); addChild(sp); var mask:Sprite=new Sprite(); mask.graphics.beginFill(0xFF0000); mask.graphics.drawCircle(0,0,50); ma...
来源: Laya2.0_文档 发布时间: 20210714
...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var maskSp; var bg2; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(1136, 640, Web...
来源: Laya_示例 发布时间: 20241123
...on = new Laya.Vector3(0, -1.0, -1.0); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); var layaPlane = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/LayaPlane/LayaPlane.lh")); Laya.loader.create([ "../../res/threeDi...
来源: Laya_示例 发布时间: 20241123
...n = _direction; }); function onComplete() { var grid = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/grid/plane.lh")); //地面接收阴影 grid.getChildAt(0).meshRender.receiveShadow = true; var staticLayaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/...
来源: Laya_示例 发布时间: 20241123
点击区域问题 var con1:laya.display.Sprite = new laya.display.Sprite; Laya.stage.addChild(con1); con1.x = con1.y = 100; var con:laya.display.Sprite = new laya.display.Sprite; con1.addChild(con); // con.scrollRect = new laya.maths.Rectangle(200,200,500,500); con.x = con.y = -200; var sp:laya.di...
来源: Laya_社区 发布时间: 20180106