Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Easily find out what's changing transform position (rotation / scale)

Discussion in 'Assets and Asset Store' started by ChrisHandzlik, Feb 1, 2020.

  1. ChrisHandzlik

    ChrisHandzlik

    Joined:
    Dec 2, 2016
    Posts:
    21
    When working with Unity you've probably asked what's changing a specific transform position/rotation/scale.

    Generally you'd set a breakpoint and debug it this way but for transform you cannot easily do that. The best way seem to be replacing all calls that modify it directly, eg `transform.postion = newPosition` to some interceptor code that you can control, like `Interceptor.SetPosition(transfrom, newPosition`)

    Unfortunately this is not always possible or easy.

    This tool will help you do exactly that but automatically and without modifying any of your source code.


    https://github.com/handzlikchris/Unity.TransformSetterInterceptor
     
    TeagansDad likes this.
unityunity