大约有 2,728 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0068 秒)
Laya_社区(2214) Laya2.0_文档(123) Laya3.0_api(106) Laya_示例(84) Laya2.0_api(57) Laya2.0_示例(55) laya_api(53) Laya3.0_文档(36)
...angZi/PangZi-doubipangzi.lm"], Laya.Handler.create(this, onComplete)); var sprite3d1; var sprite3d2; var sprite3d3; var sprite3d4; var sphereMesh; var str5 = "旁白 : 秀恩爱,死得快! (MeshCollider)"; function onComplete(){ //添加精灵到场景 sprite3d1 = scene.addChild(new Laya.MeshSpr...
来源: Laya_示例 发布时间: 20241117
...onComplete)); function onComplete() { var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMonkey_clone1 = Laya.Sprite3D.instantiate(layaMonkey, scene, false, new Laya.Vector3(0.6, 0, 0)); //克隆sprite3d var layaMo...
来源: Laya_示例 发布时间: 20241117
...s, onComplete)); function onComplete() { layaMonkey1 = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey2 = Laya.Sprite3D.instantiate(layaMonkey1, scene, false, new Laya.Vector3(0, 0, 0)); layaMonkey3 = scene.addChild(Laya.Sprite3D.instantiate(...
来源: Laya_示例 发布时间: 20241117
...rseInt(1.5); b.mask遮罩使用; flash环境下: 1、静态遮罩 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); ...
来源: Laya_社区 发布时间: 20170207
...er, maskArea, interactionArea, hitArea, tipContainer, guideStep = 0; class Sprite_Guide { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(1285, 727, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTE...
来源: Laya2.0_示例 发布时间: 20241117
...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var HitArea = Laya.HitArea; var WebGL = Laya.WebGL; var red; var guideContainer; var tipContainer; var guideSteps = [ { x: 151, y: 575, radius: 150, tip: "../../res/guide/help6.png"...
来源: Laya_示例 发布时间: 20241117
...ya.Vector3( -15, 0, 0), true, false); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"));class Sprite3DLoad { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_N...
来源: Laya_示例 发布时间: 20241117
...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var MapLayer = Laya.MapLayer; var TiledMap = Laya.TiledMap; var Point = Laya.Point; var Rectangle = Laya.Rectangle; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var tiledMap;...
来源: Laya_示例 发布时间: 20241117
...or3(0.0, 0.0, 3.0); pointLight.range = 3.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_示例 发布时间: 20241117
...ayer.getScreenPositionByTilePos(Math.floor(p.x), Math.floor(p.y), p); this.sprite.pos(p.x, p.y); } mapLoaded() { this.layer = this.tiledMap.getLayerByIndex(0); var radiusX = 32; var radiusY = Math.tan(180 / Math.PI * 30) * radiusX; // 14.37 var color = "#FF7F50"; this.sprite = new Laya.Sprite(); thi...
来源: Laya2.0_示例 发布时间: 20241117