内容管理从XNA 3到XNA 4的差异

时间:2012-07-17 19:24:02

标签: xna xna-4.0 xna-3.0

在XNA 4中,内容结构与3中的内容结构大不相同(默认情况下,我创建的项目中有新的内容项目)。我基本上只是想了解结构变化的目的是什么。我是否需要将所有内容都放在“内容项目”中?这只是为了让我更整洁吗?这是人们在谈论“内容管道”时的意思吗?

谢谢!

1 个答案:

答案 0 :(得分:1)

XNA 4内容项目是将存储游戏中所有资产的项目(纹理,声音等)

MSDN描述的内容管道是"A set of processes applied when a game that includes art assets is built. The process starts with an art asset in its original form as a file, and continues to its transformation as data that can be retrieved and used within an XNA Game Studio game through the XNA Framework Class Library. "

可以使用ContentManager加载内容。 Here您可以找到使用它的基础知识。