Berizer Curve Data Editor (with PropertyDrawer Support)
shironokun
$5.99
(no ratings)
Date |
Price |
---|---|
日期和时间 |
价钱($) |
10/25(2024) |
5.99 |
11/01(2024) |
5.99 |
Jump AssetStore
This is a tools for helping you create Curve data, do not need add any component, just adding Curve to inside Serializable object then it will show up a Curve Editor.This is a tools for helping you create Curve data. You can just add "Curve" in script as SerializeField, then it will show up a Curve Editor on Scene View, a List of Curve edit is also supported.If you are looking for a Curve editor that minimum integrate work for you project, this is the pacakage for you.Feature:1) Scene View Curve EditorFreeMoveHandle for Anchor Point, Control PointMove the whole Curve by pressing "Shift"Manual, Linear, Auto Balanced, Auto Balanced Isometric, Full Auto mode for Control PointHide, Preview, Edit modeAdd, Remove, Reset SegmentAlign whole Curve to CenterAlign Point to Axis, by using this option you can modify point on a specified Axis."To Axis" Button, you can snap all your points in the curve to the Axis plane.Anchor Point Stick to Surface, with this mode anchor point will snap to collider surface on the scene. You can also setup a offset."Edit Base On", your curve is related to "Base" transform local space, None mean world space.2) Serialized Field Property Drawer Supported, you can just add "Curve" to any Serializable object, curve editor will show up when Inspector drawing.3) By Using ClosestT and ShouldGoForward function, your object can Go forward by MoveSpeed rather than just following the Curve Absolutely. (Please look at the FollowPathWithMoveSpeed.cs inside package.)Example:1) Object Following PathExample of make a object following the path2) List of Curve DataExample of editing multiple Curve3) Curved Object Array (3D)Example of Editor tools to create a object array in the scene4) Raycast EditingAn example of "Stick to Surface" editing mode. Anchor point will snap to surface automactically.5) Filling FieldAn example of filling curve by object6) Edit Base On Scene TransformAn example of Curve is related to Scene, but Curve data saved in CharacterScript Document:void AddSegment(Transform parent):Input 'parent' make First point related to parent transformOther point is related to the last point of curvevoid RemoveSegment(int index):Remove one Anchor pointVector3 Evaluate(float t, Transform parent):Input 't' is a float from 0~1 (Looping Index)Input 'parent' can make output Vector3 related to parent transform. (So rotate parent also rotating the curve, scale parent also scaling the curve.)Vector3 Tangent(float t):Getting the tagent Vector of point at Evaluate(t) (Usually used for moving forward)Vector3 Normal(float t)Getting the normal Vector of point at Evaluate(t)Vector3 Forward(float t)Getting the forward Vector of point at Evaluate(t)float ClosestT(Vector3 point, float resolution, Transform parent = null)Find the closest evaluate value by input 'point' (Can see the Example at FollowPathWithMoveSpeed.cs script)List TryFindFillPoint(float resolution, Axis2D axis2D, Transform parent = null)By resolution and axis input, return a list of Point which inside the curve.