Provides data for the
AvatarAppearanceevent
Declaration Syntax
C# |
public class AvatarAppearanceEventArgs : EventArgs
Members
All Members | Constructors | Properties | |||
|
|
|
Icon | Member | Description |
---|---|---|
AvatarAppearanceEventArgs(Simulator, UUID, Boolean, Primitive . . :: . . TextureEntryFace, array< Primitive . . :: . . TextureEntryFace > [] () [] [] , List < (Of < <' ( Byte > ) > > ) , Byte, Int32, AppearanceFlags) |
Construct a new instance of the
AvatarAppearanceEventArgs class
|
|
AppearanceFlags |
Appearance flags, introduced with server side
baking, currently unused
|
|
AppearanceVersion |
Version of the appearance system used. Value
greater than 0 indicates that server side baking is used
|
|
AvatarID |
Get the ID of the agent
|
|
COFVersion |
Version of the Current Outfit Folder the
appearance is based on
|
|
DefaultTexture |
Get the default agent texture
|
|
FaceTextures |
Get the agents appearance layer textures
|
|
IsTrial |
true if the agent is a trial account
|
|
Simulator |
Get the Simulator this request is from of the
agent
|
|
VisualParams |
Get the
VisualParamsfor the agent
|
Remarks
The
AvatarAppearanceevent occurs when the simulator sends the
appearance data for an avatar
Examples
The following code example uses the
AvatarIDand
VisualParamsproperties to display the selected shape of an
avatar on the
Consolewindow.
Copy | |
---|---|
// subscribe to the event Client.Avatars.AvatarAppearance += Avatars_AvatarAppearance; // handle the data when the event is raised void Avatars_AvatarAppearance( object sender, AvatarAppearanceEventArgs e) { Console.WriteLine( "The Agent {0} is using a {1} shape.", e.AvatarID, (e.VisualParams[ 31] > 0) : "male" ? "female") } |
Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)