【问题标题】:Content Management Differences from XNA 3 to XNA 4XNA 3 到 XNA 4 的内容管理差异
【发布时间】:2014-12-07 21:22:00
【问题描述】:

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

谢谢!

【问题讨论】:

    标签: xna xna-4.0 xna-3.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你可以找到使用它的基础知识。

    【讨论】:

    • 感谢您的回复。我开始觉得我想太多了。 xna 4.0 内容项目和 xna 3.1 内容文件夹一样吗?
    • 我其实没用过XNA 3.1,但是我假设你可以将资产添加到文件夹中,并使用一种方法来加载它们?如果是这样,我会说几乎相同,您将资产添加到文件夹中,然后将它们添加到解决方案中,就像使用类或其他东西一样。
    猜你喜欢
    • 2012-02-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-14
    相关资源
    最近更新 更多