Is there a difference .Changed vs GetPropertyChangedSignal

Is there a difference in performance or is it just preference?

image

Changed is irrespective of property, it will fire if any of the properties of an object is changed.

GetPropertyChangedSignal(property) is property specific, meaning, it will only fire when the property that you specified is changed.

Hope that helps!

1 Like

Is there any performance benefits for using either?

Yes, there are.

It really depends on the use cases. If you are targeting for a specific property, then consider using GetPropertyChangedSignal(). Since it will only fire only when a specific property is changed hence, saving resources.

But, if you want to track any changes that are made to an object, irrespective of a certain property, then go for Changed.

Edit:
Consider using Code Blocks next time, it really makes it easy for other people on the forum.

1 Like

I don’t know how to use code blocks, and thank you.

It’s pretty simple

That should create a code block for you!

1 Like