大约有 85 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0033 秒)
Laya_示例(24) Laya_社区(23) Laya3.0_文档(13) Laya2.0_文档(11) Laya2.0_示例(8) Laya3.0_api(5) Laya2.0_api(1)
...fuseScale4(new Laya.Vector2(13.96364, 13.96364)); customMaterial.setAmbientColor(new Laya.Vector3(1, 1, 1)); customMaterial.setDiffuseColor(new Laya.Vector3(1, 1, 1)); customMaterial.setSpecularColor(new Laya.Vector4(1, 1, 1, 8)); customMaterial.setLightMapScaleOffset(new Laya.Vector4(0.8056641, 0.8...
来源: Laya_示例 发布时间: 20251130
.../聚光灯 var spotLight = scene.addChild(new Laya.SpotLight()); spotLight.color = new Laya.Vector3(1, 1, 0); spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); spotLight.direction = new Laya.Vector3(0.15, -1.0, 0.0); spotLight.attenuation = new Laya.Vector3(0.0, 0.0, 0.8); spotLight.ra...
来源: Laya_示例 发布时间: 20251130
...始化舞台 Laya.init(1334,750,Laya.WebGL); //背景颜色 Laya.stage.bgColor = "#1b2436"; //创建缓动文本 createTween(); function createTween(){ //"LayaBox"字符串总宽度 var w = 800; //文本创建的起始x位置(>>在此使用右移运算符,相当于/2 用>>效率更高) var offsetX...
来源: Laya2.0_文档 发布时间: 20210715
...directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); directionLight.direction = new Laya.Vector3(0, -1.0, -1.0); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); var layaPlan...
来源: Laya_示例 发布时间: 20251130
...关问题 怎样获取浏览器地址传过来的GET参数 2.0 drawTexture color参数无效 Graphic.drawTextures,第二个参数 pos:Array — 绘制次数和坐标,怎么写啊, as3中如何定义html中的id参数 子节点的 getChildIndex(node:Node):int 根据子节点对象,获取子节...
来源: Laya_社区 发布时间: 20180720
...始化舞台 Laya.init(1334,750,Laya.WebGL); //背景颜色 Laya.stage.bgColor = "#1b2436"; //创建缓动文本 this.createTween(); } //创建缓动文本 private createTween():void{ //"LayaBox字符串总宽度" var w:number = 800; //文本创建的起始位置(>>在此使用右移运算符,相...
来源: Laya2.0_文档 发布时间: 20210715
...Laya.Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_AUTO; Laya.Laya.stage.bgColor = "#232628"; this.createBox(); this.eventListener(); } createBox() { const width = 300, height = 20; const posx = Laya.Browser.width / 2, posy = Laya.Browser.height / 2; let box = this.box = new Laya.Sprite(); box.size(...
来源: Laya2.0_示例 发布时间: 20251130
...初始化文本组件 this.displayText = new Laya.Text(); this.displayText.color = "#ffffff"; this.displayText.font = "Arial"; this.displayText.fontSize = 24; this.displayText.bold = true; this.displayText.x = 10; // 例如,设置在屏幕左上角 this.displayText.y = 10; this.owner.scene.addChil...
来源: Laya3.0_文档 发布时间: 20251010
...; directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var earth = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/earth/EarthPlanet.lh")); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res...
来源: Laya_示例 发布时间: 20251130
...; directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); var plane = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/Zombie/old/Plane.lh")); var zombie = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/Zom...
来源: Laya_示例 发布时间: 20251130