从旧版中移植,Prefab未确认
This commit is contained in:
19
Convention/[Art]/Line/LinePoint.cs
Normal file
19
Convention/[Art]/Line/LinePoint.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Convention.VFX
|
||||
{
|
||||
public class LinePoint : MonoBehaviour, ILoadedInHierarchy
|
||||
{
|
||||
public float Scale { get; private set; }
|
||||
public float ScaleOne = new Vector3(1, 1, 1).magnitude;
|
||||
public Vector3 Forward { get; private set; }
|
||||
public Color PointColor = Color.white;
|
||||
public float PointWeight = 1;
|
||||
|
||||
private void Update()
|
||||
{
|
||||
Scale = transform.localScale.magnitude / ScaleOne;
|
||||
Forward = transform.forward;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user