Unity 2D – How to anchor a sprite to the left side of the camera viewport

using UnityEngine; using System.Collections; public class ActualHeroController : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { float camHalfHeight = Camera.main.orthographicSize; float camHalfWidth = Camera.main.aspect * camHalfHeight; Bounds bounds = GetComponent().bounds; // Set a new vector to the top left of […]

WPF Validation Errors not showing on initial load of control or window

I was setting validation errors on the initial load of my view model, and to my annoyance the window would show up like everything was great. The validation code was definitely running, the HasErrors was true, the dictionaries were filled with the errors but the form was like, “What errors?” ┬áThis irritated me. Well, WPF […]