Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    203
    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.
  2. ChrisHandzlik

    ChrisHandzlik

    Joined:
    Dec 2, 2016
    Posts:
    203
    Last edited: Nov 15, 2021