Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3508 Members - Latest Member: PienueDut

26. May 2012, 10:36:27 am
Xith3D CommunityGeneral CategoryGeneral Discussion (Moderators: Marvin Fröhlich, 'n ddrylliog)setUserData
Pages: [1]
Print
Author Topic: setUserData  (Read 756 times)
elijah
Enjoying the stay
*
Offline Offline

Posts: 72


View Profile
« on: 09. March 2009, 05:36:26 am »

Can somebody tell me the use of the setUserData function and how to used it? I have check the xith-tk example but they dont seem to used it. Its there in the source code but never get used ? For Example SelectionTest.
Logged
elijah
Enjoying the stay
*
Offline Offline

Posts: 72


View Profile
« Reply #1 on: 09. March 2009, 05:40:03 am »

Sorry I mean the MenuAction Example. The event never seem to be called ?
Logged
Mathias 'cylab' Henze
Fierce Warrior
****
Offline Offline

Posts: 540

1064620
View Profile WWW
« Reply #2 on: 09. March 2009, 02:14:30 pm »

I don't know what you mean with event, but setUserData is useful for binding objects to scenegraph nodes, so you can for example set player infos to a loaded model. When you then pick that model, you could use getUserData to access the player info.
Logged

Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic