AvatarDescription.CreateRandom Method (AvatarBodyType)

Creates an avatar of the specified body type with random features and clothing.

Dd940251.note(en-us,XNAGameStudio.40).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.

Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework.Avatar (in microsoft.xna.framework.avatar.dll)

Syntax

public static AvatarDescription CreateRandom (
         AvatarBodyType bodyType
)

Parameters

  • bodyType
    Body type of the randomly-created avatar.

Return Value

Description of the created avatar.

Remarks

It is possible that a newly-created random AvatarDescription object could be an invalid avatar description buffer. For instance, the related AvatarDescription object was created by a call to CreateRandom, from within a Windows application.

See Also

Reference

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

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP