class MAGES::Recorder::Utilities::UserAvatarDelegator¶
Overview¶
Manages events for when users connect and spawn their avatar and hands. More…
class UserAvatarDelegator
{
public:
// classes
class Evt;
// properties
OnEvtHandler OnEvent;
bool Collect;
// methods
UserAvatarDelegator();
delegate void OnEvtHandler(Evt e);
void AddDefaultUser(
string name,
GameObject avatar,
GameObject leftHand,
GameObject rightHand,
int id = 1
);
};
Detailed Documentation¶
Manages events for when users connect and spawn their avatar and hands.
Properties¶
OnEvtHandler OnEvent
Invoked when an event happens.
bool Collect
Gets or sets a value indicating whether the delegator is collecting events or sending them immediately.
Methods¶
UserAvatarDelegator()
Initializes a new instance of the UserAvatarDelegator class.
delegate void OnEvtHandler(Evt e)
Occurs when an event happens.
Parameters:
e |
The event data. |
void AddDefaultUser(
string name,
GameObject avatar,
GameObject leftHand,
GameObject rightHand,
int id = 1
)
Adds the default user.
Parameters:
name |
The name. |
avatar |
User’s avatar. |
leftHand |
User’s left hand. |
rightHand |
User’s right hand. |
id |
The user id. |