C# Class LTSpline, LeanTween

显示文件 Open project: dentedpixel/LeanTween Class Usage Examples

Public Properties

Property Type Description
DISTANCE_COUNT int
SUBLINE_COUNT int
constantSpeed bool
distance float
orientToPath bool
orientToPath2d bool
pts Vector3[]
ptsAdjLength int

Public Methods

Method Description
LTSpline ( Vector3 pts ) : UnityEngine
LTSpline ( Vector3 pts, bool constantSpeed ) : UnityEngine
drawGizmo ( Color color ) : void
drawGizmo ( Transform arr, Color color ) : void
drawLine ( Transform arr, float width, Color color ) : void
drawLinesGLLines ( Material outlineMaterial, Color color, float width ) : void
generateVectors ( ) : Vector3[]
gizmoDraw ( float t = -1.0f ) : void
interp ( float t ) : Vector3
map ( float u ) : Vector3
place ( Transform transform, float ratio ) : void
place ( Transform transform, float ratio, Vector3 worldUp ) : void
place2d ( Transform transform, float ratio ) : void
placeLocal ( Transform transform, float ratio ) : void
placeLocal ( Transform transform, float ratio, Vector3 worldUp ) : void
placeLocal2d ( Transform transform, float ratio ) : void
point ( float ratio ) : Vector3
ratioAtPoint ( Vector3 pt ) : float

Private Methods

Method Description
init ( Vector3 pts, bool constantSpeed ) : void

Method Details

LTSpline() public method

public LTSpline ( Vector3 pts ) : UnityEngine
pts Vector3
return UnityEngine

LTSpline() public method

public LTSpline ( Vector3 pts, bool constantSpeed ) : UnityEngine
pts Vector3
constantSpeed bool
return UnityEngine

drawGizmo() public method

public drawGizmo ( Color color ) : void
color Color
return void

drawGizmo() public static method

public static drawGizmo ( Transform arr, Color color ) : void
arr Transform
color Color
return void

drawLine() public static method

public static drawLine ( Transform arr, float width, Color color ) : void
arr Transform
width float
color Color
return void

drawLinesGLLines() public method

public drawLinesGLLines ( Material outlineMaterial, Color color, float width ) : void
outlineMaterial Material
color Color
width float
return void

generateVectors() public method

public generateVectors ( ) : Vector3[]
return Vector3[]

gizmoDraw() public method

public gizmoDraw ( float t = -1.0f ) : void
t float
return void

interp() public method

public interp ( float t ) : Vector3
t float
return Vector3

map() public method

public map ( float u ) : Vector3
u float
return Vector3

place() public method

public place ( Transform transform, float ratio ) : void
transform Transform
ratio float
return void

place() public method

public place ( Transform transform, float ratio, Vector3 worldUp ) : void
transform Transform
ratio float
worldUp Vector3
return void

place2d() public method

public place2d ( Transform transform, float ratio ) : void
transform Transform
ratio float
return void

placeLocal() public method

public placeLocal ( Transform transform, float ratio ) : void
transform Transform
ratio float
return void

placeLocal() public method

public placeLocal ( Transform transform, float ratio, Vector3 worldUp ) : void
transform Transform
ratio float
worldUp Vector3
return void

placeLocal2d() public method

public placeLocal2d ( Transform transform, float ratio ) : void
transform Transform
ratio float
return void

point() public method

public point ( float ratio ) : Vector3
ratio float
return Vector3

ratioAtPoint() public method

public ratioAtPoint ( Vector3 pt ) : float
pt Vector3
return float

Property Details

DISTANCE_COUNT public_oe static_oe property

public static int DISTANCE_COUNT
return int

SUBLINE_COUNT public_oe static_oe property

public static int SUBLINE_COUNT
return int

constantSpeed public_oe property

public bool constantSpeed
return bool

distance public_oe property

public float distance
return float

orientToPath public_oe property

public bool orientToPath
return bool

orientToPath2d public_oe property

public bool orientToPath2d
return bool

pts public_oe property

public Vector3[] pts
return Vector3[]

ptsAdjLength public_oe property

public int ptsAdjLength
return int