大约有 570 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0066 秒)
Laya3.0_api(122) Laya_社区(113) Laya2.0_api(106) Laya2.0_文档(100) laya_api(93) Laya3.0_文档(33) Laya2.0_示例(3)
...derShape球 球体是一个基本的球体形状的圆形碰撞盒。可以通过设置半径来调整球体。常用于球形物体的碰撞检测。 (图3) ```typescript //随机生成半径大小 var radius:Number = Math.random() * 0.2 + 0.2; //创建球型MeshSprite3D var sphere:Me...
来源: Laya2.0_文档 发布时间: 20210714
...想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显示对象是否缓存为静态图...
来源: laya_api 发布时间: 20170422
...number): VertexElement Defined in laya/d3/graphics/VertexDeclaration.ts:79 通过索引获取顶点元素。 Parameters index: number 索引。 Returns VertexElement Globals "laya/d3/graphics/VertexDeclaration" VertexDeclaration constructor id vertexElementCount vertexStride getVertexElementByIndex ...
来源: Laya3.0_api 发布时间: 20231102
...想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之...
来源: laya_api 发布时间: 20170929
...nate(coordinate:Vector3, transform:Matrix4x4, result:Vector3):void[static] 通过矩阵转换一个三维向量到另外一个归一化的三维向量。 Vector3 TransformNormal(normal:Vector3, transform:Matrix4x4, result:Vector3):void[static] 通过法线矩阵转换一个法线三维向量到...
来源: Laya2.0_api 发布时间: 20190513
...想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 basePath basePath: string Defined in laya/ani/swf/MovieClip.ts:71 资源根目录。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTe...
来源: Laya3.0_api 发布时间: 20231115
...runCallLater(method:Function):void 如果有需要延迟调用的函数(通过 callLater 函数设置),则立即执行延迟调用函数。 Node setChildIndex(node:Node, index:int):Node 设置子节点的索引位置。 Node timerLoop(delay:int, caller:*, method:Function, args:Array = nu...
来源: Laya2.0_api 发布时间: 20190513
...有3D组件和脚本的容器。 在LayaAir 3.0编辑器中,我们可以通过鼠标右键来创建一个Sprite3D,如动图1-1所示 (动图1-1) 创建好的Sprite3D,在编辑器场景中,Scene3D下会是一个空节点,如图1-2所示 (图1-2) 基本上我们创建一个Sprite3D...
来源: Laya3.0_文档 发布时间: 20251010
...想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display/Sprite.ts:273 指定鼠标事件检测是优先检测...
来源: Laya3.0_api 发布时间: 20231115
...derShape球 球体是一个基本的球体形状的圆形碰撞盒。可以通过设置半径来调整球体。常用于球形物体的碰撞检测。 (图3) ```typescript //随机生成半径大小 var radius:number = Math.random() * 0.2 + 0.2; //创建球型MeshSprite3D var sphere = ...
来源: Laya2.0_文档 发布时间: 20210714