大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0200 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
为什么动态设置聚光灯朝向无效呢 var tar = new Laya.Vector3(); var dir = new Laya.Vector3(); var src = model.transform.position; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLi...
来源: Laya_社区 发布时间: 20171105
为什么动态设置聚光灯朝向无效呢 var tar = new Laya.Vector3(); var dir = new Laya.Vector3(); var src = model.transform.position; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLi...
来源: Laya_社区 发布时间: 20171105
...sources/layabox.png"); mesh2Drender.texture = tex; // mesh2Drender.color = new Laya.Color(0.8, 0.15, 0.15, 1); // mesh2Drender.lightReceive = true; } /** * 生成一个圆形2D网格 * @param radius 圆的半径 * @param numSegments 圆被分割的段数,段数越多圆越平滑 */ private generat...
来源: Laya3.0_文档 发布时间: 20251120
...var material = meshSprite.meshRender.sharedMaterials[0]; material.albedo = new Laya.Vector4(0.0,0.0,0.0,0.0); material.renderMode = Laya.BaseMaterial.RENDERMODE_OPAQUEDOUBLEFACE; material.reflectTexture = textureCube; }); 为什么meshSprite.meshRender.sharedMaterials[0]; 只取第一个 2016-12-15 ...
来源: Laya_社区 发布时间: 20161215
...设置是没有效果的,这样设计是不是有问题?var a:Sprite = new Sprite(); a.graphics.drawRect(0,0,200, 200, "#00ff00"); a.size(200, 200); a.pos(0, 0); a.on(Event.CLICK, null, function(e:Event):void{ trace("click a"); }) Laya.stage.addChild(a); var b:Sprite = new Sprite(); b.graphics.d...
来源: Laya_社区 发布时间: 20181026
...ignV=Stage.ALIGN_CENTER; btn1 = new Button(null,"显示"); btn2 = new Button(null,"销毁"); btn1.labelColors = "#ffffff,#ffffff,#ffffff"; btn2.labelColors = "#ffffff,#ffffff,#ffffff"; ...
来源: Laya_社区 发布时间: 20180425
...提交 1 个回复 hj 赞同来自: light.transform.worldMatrix.setForward(new Vector3(0, -5, 1));方向光那个这样写,我们会修改文档 下面这个是var scene:Scene3D = Laya.loader.getRes("LayaScene_01/loveScene.ls") 2018-10-07 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回...
来源: Laya_社区 发布时间: 20180927
...叠 要回复问题请先登录 发起人 zkelong 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 请问有没有方法能够获取“鼠标是否处于按下状态”? 骨骼动画播放完后的回调时间 关于龙骨动画转换...
来源: Laya_社区 发布时间: 20170421
...aultParser Methods parse Object literals classMap Constructors constructor new HtmlParser(): HtmlParser Defined in laya/html/HtmlParser.ts:25 Returns HtmlParser Properties Static defaultParser defaultParser: HtmlParser = new HtmlParser() Defined in laya/html/HtmlParser.ts:14 Methods parse parse(aSou...
来源: Laya3.0_api 发布时间: 20231115
... private createComboBox(skin: String): ComboBox { var comboBox: ComboBox = new ComboBox(this.skin, "item0,item1,item2,item3,item4,item5"); comboBox.labelSize = 30; comboBox.itemSize = 25; comboBox.selectHandler = new Handler(this, this.onSelect, [comboBox]); Laya.stage.addChild(comboBox); return com...
来源: Laya2.0_文档 发布时间: 20210715