How to I make the X and Y position of an object in unity refer to the top left of the object, instead of the center? - unity3d

the image of the object, with the x and y coordinates referring to the middle of the object
I'm kind of a noob at unity, but I'm pretty sure I've done this before. Is there a way to change the position of the blue circle to the top left of the object?

If That white box is a Sprite, then just click the sprite filed to open it in inspector. And Click [Sprite Editor] button in the middle of inspector. There you can just drag blue circle (the center of that sprite). And then press [Apply] button in inspector.
If that white box is a GUI Image ( I think probably not.) , then you need too do some scripting for it. ( Just Re-Arrange it whit modified center with code )

Related

How to create a clickable radar with a dot in the click position

I wanted to create a radar that, when clicked on the surface of this circle, sets the red dot to the position of the click as shown in the photo. I'm a beginner in flutter so I don't know how to start doing this at all.

How can I change in Cinemachine the Game Window Guides center to be on the player center?

On the game view on the left the yellow small square is on the player foot and the whole rectangle on the bottom is down out the view.
How can I move up the yellow small square of the Game Window Guides to be on the player center and that the bottom of the Game Window Guides rectangle will be fit in the game view so I can control it change it's size ?
In this screenshot I'm using paint to add circle/s to explain more what do I mean the yellow small square and what do I mean by fit the size and that is out at the bottom :
I use blue circle to show the yellow small square I meant and blue rectangle to show the bottom that is getting out the Game view :
How can I change in Cinemachine the Game Window Guides center to be on the player center ?
The small yellow square I think and I want to be on the character center body not on his foot.
And on the bottom I can't drag the Game Window Guides since it's out on the bottom.
Under Middle Rig property, change the y-axis from 0 to 1.

unity 2d tile with vector graphics image doesn't change color when painting tilemap

I am using vector graphics for my game. The problem is after importing the vector file of a simple white square, I created a tile using it and I changed its color to ( let's say ) red. I created a 2dtilemap by right clicking in the object hierarchy. Then I opened my tile palette windows, I drag and drop my square tile ( with changed color ) in the tile palette window. Instead of showing a red square tile, its showing me the (original ) white color tile. Even when i paint, its painting a white square tile instead of red. I don't know why this is happening .... plz help
Whene you drag Sprite, tile pallet get only Texture from this Sprite. Color its property of Sprite.

Zooming in netlogo

I am wondering whether there is a possibility zoom to a certain location while the model is running (i.e while go procedure is active)
For the first part of my model I am mostly interested in what happening in the red box (First image). The second image is a zoomed version of the red box when i set gis:set-world-envelope "shape file with brown boundary".
However I will need to see the overall gis file (picture 1) as the model continues to run. Since my agents will start moving out of the red box.
Is there a way in netlogo to shift gis:world-envelope-of while the model is running or someway to zoom in and out.
Short answer: switch to 3D view.
Long answer: On your map, do a right click with your mouse. In the appearing context menu, select "Switch to 3D View". In the resulting view, you can zoom in with your mouse wheel on the blue center. If you need to move the center of view, click on "Move" (check screenshot below) button in the left bottom corner and replace your center of view, by holding the left mouse button and move of your mouse.

Transformation Sprite with finger move

I am making an Drawing App in someway like Paint in Windows
I have a toolbar with many shapes button such as Rectangle, Circle, Triangle, etc. When tap a button i add a sprite with shape with button's name.
I want to add functions like this
- When tap on shape it show four 4 points each corner of shape that i can touch and drag to skew or scale.
Same as we do with an image in photoshop or MSWord
anyone have sample code or tutorial ?
Use this code for your app.
Paint
Drawing
Drawing2