How to set game object to lower left of screen dependent on aspect ratio?

Hi, I’m rather new to Unity and am having some trouble getting started. Keep in mind this will be an Android app coded with C#.

I’m trying to position a gameObject sprite to the lower left of the screen regardless of aspect ratio.

I’ve tried this but it doesn’t seem to do anything when I run it in Unity.

using UnityEngine;
using System.Collections;

public class TargetObject : MonoBehaviour {

	public GameObject targetObject;
	public Vector3 startPosition = new Vector3(5,5,0);

	// Use this for initialization
	void Start () {

		// Set the mask to the lower left corner of screen
		if (targetObject != null) 
			targetObject.transform.position = Camera.main.ScreenToWorldPoint(startPosition);
	// Update is called once per frame
	void Update () {

Any help would be appreciated. Thanks

Right click inside the hierarchy panel and create a Canvas. Then, right click the Canvas and add an Image. Set the anchors on the image to the bottom left corner, and manually move the image there. The anchors can be set in the inspector at the top near “Rect Transform”. Also, keep in mind, an “Image” is more like a picture frame. The actual picture you want to see, will be a texture of type sprite, assigned to the sprite value of the Image. Hope this helps.


(Note/Edit* Look Up Unity UI as of 4.6)