x


Mass component editing through SerializedProperty or Setters

Hey folks,

I'm writing an omnibox (Editor Script) for Unity which allows you to apply changes to many GOs/Components at once. For example, typing "set mass Rigidbody 5" and hitting Enter would set the mass of all Rigidbody components of all selected game objects to be set to 5.

Currently I'm doing this by getting the SerializedProperties of a component and modifying their values. Would it be a better idea to Invoke the setter for that property, since the setter might then go ahead and do a number of different things on its own? (such as calculating a convex hull when the Convex boolean is set to true for a MeshCollider)

Thanks.

more ▼

asked Sep 01 '10 at 07:18 PM

VoxelBoy gravatar image

VoxelBoy
133 5 5 9

Have you made any progress on this?

Jul 08 '11 at 12:15 AM Tetrad
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1664
x347
x30

asked: Sep 01 '10 at 07:18 PM

Seen: 937 times

Last Updated: Jul 08 '11 at 12:15 AM