Search Unity

Overriding localPosition

Discussion in 'Editor & General Support' started by Matt_001, Feb 2, 2011.

  1. Matt_001

    Matt_001

    Joined:
    Sep 17, 2010
    Posts:
    101
    Greetings,

    I research a lot during the past few months about half-pixel positioning for a Pixel Perfect context. I have a custom Component that contains text and should never be positioned at half pixel for obvious reasons.

    I was wondering if there is a way to override the transform.localPosition of this object in order to round the float value at 2 decimals.

    Anyone have an idea ?

    Regards.
     
    Last edited: Feb 2, 2011