一般注意事项 (General Notes)

其他包的注意事项 (Other Package Notes)

示例资产 (Demo Assets)

我们提供了以下文件,以用于演示,并作为创建你自己的游戏的基础。但是,如果你不需要它们,可以将它们丢弃(删除)。

  • Prefabs/DemoPrefabs文件夹中的所有预制体(例如:demoCabinet预制体)
  • Resources/InventoryItems 和 Resources/Pickups文件夹中的所有预制体(例如:demoSoup预制体)
  • Resources/AudioDiaryAudioClips文件夹中的所有声音
  • Materials/DemoMaterials文件夹中的所有资源(如果你删除了这个文件夹,那么也可以删除“Shaders”文件夹。因为“Shaders”文件夹下的Shader,只会被DemoMaterials文件夹中的材质球引用。)
  • Scripts/DemoScripts文件夹中的所有的脚本
  • Textures/DemoTextures文件夹中的所有的纹理
  • Models文件夹和子文件夹中,所有的模型和材质
  • Sounds文件夹中,所有的声音
  • esting文件夹中的所有文件

你可以根据需要,随意的删除上述的文件。

注意:
Resources文件夹中,包含了6个声音。
这些声音对于这个插件的正常运行至关重要。
但是,你就可以修改或替换这些声音,只要这些声音的文件名不更改。


交互的辅助音频 (Secondary Audio on Interact)

注意!注意!!!
此功能将在以后被弃用。
请使用新的Interactable Events播放音频。

All Interactable objects have a section in the Inspector with header "Optionally play a Secondary Sound on Interact". Under this heading, you can specify that the object's interaction trigger a secondary sound effect such as a narration or Audio Log like voice over. For most types, this occurs the first time you interact with the object. For example, when you pick up a "Pickup" type object.

When making your own custom complex Interactable objects (see demoToilet, and demoComplexRadio), you can opt-out of this behaviour altogether. However, the Inspector values will still appear as they are attached to the Interactable base class. To use this feature in your own custom scripts, just ensure that you make a call to base.interact() with the appropriate action (turning a knob, pressing a switch, breaking a window, etc.). If you don't know what any of this means, don't worry. It will "just work" if you ignore this feature entirely.

To add secondary audio to an object (for example, to narrate a Journal entry), set the following values in the inspector:

  • Play Secondary Sound On Interact: Set to true to play a secondary sound.
  • Show With Text: Set to true of you want "Audio Log Style" text to appear.
  • Audio Log Text: This text will appear on the Audio Log UI when the sound is played, assuming you checked the "Show With Text" box.
  • Sound Playback Behaviour: Set to PLAY_ONCE to only play the first time (good for journal narration or spooky discoveries, for example). Set to PLAY_EVERY_TIME to play every time the interaction occurs.
  • Sound To Play On Interact: Select the audio file you want played.
注意:
如果取消勾选“Sound To Play On Interact”选项,
则会忽略Secondary Sounds中的所有其他选项,并且不会播放声音。

results matching ""

    No results matching ""