Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

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