共用方式為


AvatarDescription.CreateRandom Method

Creates an AvatarDescription object with random gender, features, and clothing.

Dd940253.note(en-us,XNAGameStudio.41).gifWindows Specific Information
Avatar-related APIs are exposed on Windows to ease cross-platform development between Windows and the Xbox 360. All avatar-related methods return default values, and rendering methods do not draw anything to the screen.

Overload List

Name Description
AvatarDescription.CreateRandom () Creates an avatar of random gender, features, and clothing.
AvatarDescription.CreateRandom (AvatarBodyType) Creates an avatar of the specified body type with random features and clothing.

See Also

Reference

AvatarDescription Class
AvatarDescription Members
Microsoft.Xna.Framework.GamerServices Namespace