mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-21 17:56:08 +08:00
Path.wpLengths is now public so it can be accessed by external scripts
+ Upgraded project to Unity 5.3.5
This commit is contained in:
parent
3feaedc77a
commit
fee71a9b9a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -5,6 +5,7 @@ using UnityEngine;
|
||||
public class Paths : BrainBase
|
||||
{
|
||||
public Transform target;
|
||||
public DOTweenPath dotweenPath;
|
||||
|
||||
void Start()
|
||||
{
|
||||
@ -14,5 +15,11 @@ public class Paths : BrainBase
|
||||
new Vector3(0,2,2),
|
||||
};
|
||||
target.DOPath(p, 4);
|
||||
|
||||
// Log length of each DOTweenPath waypoint
|
||||
Debug.Log(dotweenPath.path.wpLengths.Length);
|
||||
for (int i = 0; i < dotweenPath.path.wpLengths.Length; ++i) {
|
||||
Debug.Log(i + " > " + dotweenPath.path.wpLengths[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,2 +1,2 @@
|
||||
m_EditorVersion: 5.3.2f1
|
||||
m_EditorVersion: 5.3.5f1
|
||||
m_StandardAssetsVersion: 0
|
||||
|
||||
@ -32,7 +32,7 @@ namespace DG.Tweening
|
||||
public class DOTween
|
||||
{
|
||||
/// <summary>DOTween's version</summary>
|
||||
public static readonly string Version = "1.1.310";
|
||||
public static readonly string Version = "1.1.315";
|
||||
|
||||
///////////////////////////////////////////////
|
||||
// Options ////////////////////////////////////
|
||||
|
||||
@ -18,6 +18,7 @@ namespace DG.Tweening.Plugins.Core.PathCore
|
||||
// Static decoders stored to avoid creating new ones each time
|
||||
static CatmullRomDecoder _catmullRomDecoder;
|
||||
static LinearDecoder _linearDecoder;
|
||||
public float[] wpLengths; // Unit length of each waypoint (public so it can be accessed at runtime by external scripts)
|
||||
|
||||
[SerializeField] internal PathType type;
|
||||
[SerializeField] internal int subdivisionsXSegment; // Subdivisions x each segment
|
||||
@ -25,7 +26,6 @@ namespace DG.Tweening.Plugins.Core.PathCore
|
||||
[SerializeField] internal Vector3[] wps; // Waypoints (modified by PathPlugin when setting relative end value and change value) - also modified by DOTweenPathInspector
|
||||
[SerializeField] internal ControlPoint[] controlPoints; // Control points used by non-linear paths
|
||||
[SerializeField] internal float length; // Unit length of the path
|
||||
[SerializeField] internal float[] wpLengths; // Unit length of each waypoint
|
||||
[SerializeField] internal bool isFinalized; // TRUE when the path has been finalized (either by starting the tween or if the path was created by the Path Editor)
|
||||
|
||||
[SerializeField] internal float[] timesTable; // Connected to lengthsTable, used for constant speed calculations
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user