| Package | laya.d3.core.particleShuriKen.module |
| Class | public class GradientDataVector2 |
| Inheritance | GradientDataVector2 Object |
| Implements | laya.d3.core.IClone |
GradientDataVector2 类用于创建二维向量渐变。
| Property | Defined By | ||
|---|---|---|---|
| gradientCount : int [read-only] 二维向量渐变数量。 | GradientDataVector2 | ||
| Method | Defined By | ||
|---|---|---|---|
创建一个 GradientDataVector2 实例。
| GradientDataVector2 | ||
增加二维向量渐变。
| GradientDataVector2 | ||
clone():*
克隆。
| GradientDataVector2 | ||
cloneTo(destObject:*):void
克隆。
| GradientDataVector2 | ||
| gradientCount | property |
gradientCount:int [read-only] 二维向量渐变数量。
public function get gradientCount():int| GradientDataVector2 | () | Constructor |
public function GradientDataVector2()
创建一个 GradientDataVector2 实例。
| add | () | method |
public function add(key:Number, value:Vector2):void增加二维向量渐变。
Parameters
key:Number — 生命周期,范围为0到1。
| |
value:Vector2 — 二维向量值。
|
| clone | () | method |
public function clone():*克隆。
Returns* — 克隆副本。
|
| cloneTo | () | method |
public function cloneTo(destObject:*):void克隆。
Parameters
destObject:* — 克隆源。
|