{{newin|[[0.8.0]]|080|type=method}}
Associates a Lua value with the fixture.

To delete the reference, explicitly pass nil.

{{notice|Use this function in one thread and one thread only. Using it in more threads will make Lua cry and most likely crash.}}
== Function ==
=== Synopsis ===
<source lang="lua">
Fixture:setUserData( value )
</source>
=== Arguments ===
{{param|any|value|The Lua value to associate with the fixture.}}
=== Returns ===
Nothing.
== See Also ==
* [[parent::Fixture]]
* [[Fixture:getUserData]]
[[Category:Functions]]
{{#set:Description=Associates a Lua value with the fixture.}}
{{#set:Since=080}}
== Other Languages ==
{{i18n|Fixture:setUserData}}