Transformation Control Points

Is it possible to make control points of transformation in game like below?

Do you mean something like this?

public CircleCollider cCol;
private float x,y,z;

void Start()
{
x = 1.5f;
y = 2.5f;
z = 0f;
cCol.size = new Vector3(x,y,z);
}
1 Like

Hi @pcpark can you clarify what exactly you need?

@Tim-Duval To me it sounds like he wants Photoshop style transform gizmo runtime, so that some object could be rotated from these handles…?

2 Likes

Sorry for making a puzzle.
Just like @eses said, I want a Photoshop style transform tool runtime.
Do you have any idea about how to implement this kind of tool?

@pcpark

Well you could probably do that for 2d with UI system. You could have a RectTransform represent the “box” part and UI image elements for the handles, you can use UI events to detect clicks and drag but you will have to calculate rotation and scaling values yourself.

2 Likes

@eses
Thanks for you reply, I will try that.