Ed Giardina's .NET Blog

Blogging about Hobbyist Adventures in C#, XNA, ASP.NET and other stuff

XNA 2.0 and Drawable Game Components

So I recently updated my XNA project to 2.0 to take advantage of the cool networking libraries and such. However, now I've noticed that game components I add to the component list no longer automatically begin calling their draw methods once they're added. Perhaps previously I was implementing DrawableGameComponents wrong, but I was under the assumption that once you add them to the components list, they automagically draw themselves. They did in 1.0, and now in 2.0 I have to manually call their .Draw method. Maybe the XNA community can help out with this?

 

UPDATE: This article by a member of the XNA team may shed light on my problem. there's a property of a DrawableGameComponent called 'Visible'... it may have been set default true in 1.0 and 2.0 its no longer default enabled.

http://blogs.msdn.com/etayrien/archive/2007/02/02/first-person-shooter-cameras.aspx

Leave a Comment

(required) 

(required) 

(optional)

(required) 


Please add 7 and 6 and type the answer here: