An open API service indexing awesome lists of open source software.

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

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.