Search Feedback

11
votes

Transform callback events

Scripting

-

-

Having events for when the position/rotation/scale changes (and potentially other components as well such as colliders and rigidbodies) would be invaluable. It would be much more performant than manually checking transform.hasChanged every frame (which, for example, is a major source of performance issues in NGUI), it would reduce code coupling, and it would still work when we do not have access to the code that modifies the transform (such as with closed-source 3rd-party libraries, or even Unity's animation system)

See discussion here
https://forum.unity.com/threads/more-transform-callbacks.263448/

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(10750)

2D

(281)

Ads

(54)

AI & Navigation

(81)

Analytics

(130)

Animation

(395)

Asset Store

(355)

Asset Store Publisher

(15)

Assets

(543)

Audio

(184)

Cloud Build

(144)

Collaborate

(63)

Docs & Tutorials

(239)

Editor

(2507)

Everyplay

(17)

Game Performance Reporting

(21)

General

(978)

Graphics

(869)

GUI

(430)

Input

(172)

Licensing

(90)

Networking

(188)

Physics

(383)

Platforms

(440)

Profiling & Optimization

(84)

Runtime

(181)

Scripting

(1168)

Terrain

(170)

WebGL

(142)