大约有 621 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0080 秒)
Laya_社区(348) Laya3.0_api(74) Laya2.0_api(58) Laya2.0_文档(54) laya_api(53) Laya3.0_文档(14) Laya2.0_示例(10) Laya_示例(10)
...ios浏览器表现异常 代码: module laya { export class Sprite_Guide { private width = 750; private height = 1334; constructor() { Laya3D.init(this.width, this.height); ...
来源: Laya_社区 发布时间: 20200119
...持 **TrailRenderer**组件导出的。 我们首先在Unity3D中给一个Sphere添加上 `Trail Renderer`,并且简单的制作了一个拖尾效果。效果如图1所示。 (图1) 编辑好之后好之后我们选择导出预设。 **Tip**:拖尾所使用的的材质只能是`Lay...
来源: Laya2.0_文档 发布时间: 20210715
...1所示。 ```typescript //平面 var plane = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))) as Laya.MeshSprite3D; //新建材质 var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya....
来源: Laya2.0_文档 发布时间: 20210715
...建了一个平面。如图1所示。 ```typescript //平面 var plane:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 10, 10, 10))) as MeshSprite3D; //新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/grass.p...
来源: Laya2.0_文档 发布时间: 20210714
...隆有bug 2.1.0和2.1.1,Main Camera的clearFlag =3可以播放,但是Sprite3D克隆报错,.ls和.lh都会报错。 2.2以上的版本Main Camera的clearFlag =3无法播放,clearFlag =1或0,播放时有黑背景,克隆没有尝试。 附件 : --> LayaScene_zhadan.rar 2019-11-26 添加...
来源: Laya_社区 发布时间: 20191126
...ublic/Protected All Inherited Externals Only exported Menu Globals "laya/display/cmd/FillTextureCmd" FillTextureCmd Class FillTextureCmd 填充贴图 Hierarchy FillTextureCmd Index Properties color height offset percent texture type width x y ID Methods getBoundPoints recover Properties color color:...
来源: Laya3.0_api 发布时间: 20231115
...lue: Graphics Returns void Methods contains contains(x: number, y: number, sp: Sprite): boolean Implementation of IHitArea.contains Defined in laya/utils/HitArea.ts:26 检测对象是否包含指定的点。 Parameters x: number 点的 X 轴坐标值(水平位置)。 y: number 点的 Y 轴坐标...
来源: Laya3.0_api 发布时间: 20231115
...决方案 打开官方particle2d实例,修改他们的Rotation值,如sp.rotation=45你会发现粒子会缩小,如果sp.rotation=-90 粒子甚至会消失,我游戏中需要粒子能够依附我碰撞点发射。这样的BUG令人沮丧,如果走canvas的渲染模式则没有问题,于...
来源: Laya_社区 发布时间: 20180702
...ublic/Protected All Inherited Externals Only exported Menu Globals "laya/display/cmd/DrawTrianglesCmd" DrawTrianglesCmd Class DrawTrianglesCmd 绘制三角形命令 Hierarchy DrawTrianglesCmd Index Properties alpha blendMode color indices matrix texture uvs vertices x y ID Methods getBoundPoints rec...
来源: Laya3.0_api 发布时间: 20231115
...e/svg+xml," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); ``` 通过data来当做url传递给loadImage这个方法引擎就会帮我们加载并解码显示出来。loadImage这个方法中的参数...
来源: Laya2.0_文档 发布时间: 20210714