https://github.com/needle-tools/transform-changed-helper
Handles transform.hasChanged for you
https://github.com/needle-tools/transform-changed-helper
Last synced: about 1 year ago
JSON representation
Handles transform.hasChanged for you
- Host: GitHub
- URL: https://github.com/needle-tools/transform-changed-helper
- Owner: needle-tools
- Created: 2021-10-31T19:02:17.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-19T22:05:34.000Z (over 4 years ago)
- Last Synced: 2025-06-13T10:03:16.864Z (about 1 year ago)
- Language: C#
- Homepage:
- Size: 21.5 KB
- Stars: 17
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TransformChanged helper
Ever wanted to listen on [transform.hasChanged](https://docs.unity3d.com/ScriptReference/Transform-hasChanged.html)?
But no one is responsible for setting to false again so using it is a gamble?
Well search no more: this package handles transform.hasChanged for you and you can just subscribe to an event ⚡ to get a notification.
---
## Usage
Just subscribe to the transform of your choice by using the extension method:
```csharp
this.transform.OnHasChanged(this.MyTransformChangedCallbackMethod);
```
That's it.