APK - Doc - V1.7
  • Adventure Puzzle Kit v1.7: Introduction
  • ⭐Getting Started
    • Built-in Setup
    • URP Setup
    • HDRP Setup
  • Managers Explained
    • UI Manager
    • Disable Manager
    • Prompt Manager
  • 🏔️References
  • Setting Up Interactive Objects
  • URP Deferred Rendering?
  • Tag & Layer Reference
  • New FPSController
  • AKItem Explained
  • ⏭️Extending
    • Editor Scripts
    • System Inputs
    • Adding Audioclips
      • Audio Effect Volume
    • System Namespace
    • Adding a Trigger Event
    • Swapping Character Controllers
  • 🛡️System Breakdowns
    • Main Camera Components
    • AK Inventory Canvas
    • Keypad & Phone
    • Note & Letter
    • Door System
    • Themed Key
    • Generator
    • Gas Mask
    • Flashlight
    • Examine
    • Padlock
    • Chess
    • Lever
    • Valve
    • Fuse
    • Safe
  • ❓Support
    • FAQ
    • Examine Issues?
    • Post Processing Errors
    • Examine Text Missing?
    • Yellow Warnings?
    • Item Pickup Range
    • Animation Rotations
    • I can't see new fields / variables?
  • 🌀Development
    • Patch Notes - v1.7
    • Roadmap
  • 📧Contact Me
    • Contact Me
    • Request A Feature
    • My Other Assets
Powered by GitBook
On this page
  1. Extending

Adding Audioclips

PreviousSystem InputsNextAudio Effect Volume

Last updated 6 days ago

ScriptableObjects for audio can be created by "Right Clicking anywhere in the project panel > Create > Sound" or duplicating an already created SO.

ScriptableObjects will all have specific settings that control the audio clip which is used, that you can change, the volume, pitch, variance and whether it can loop. All features of the default "AudioSource" component.

In the "AudioManager" is good to add the size of the "Sounds" array to the number of sounds which will play within this system. By default it has 5 SO audio clips, these should be added to access them all.

Look at the inspector of the any interactive object with the "SurvivalItem" script and this will have slots for specific SO sound effects that you can add! This allows you to play that specific SO from the audio manager.

Referencing the Audio Manager Use the code, within your scripts to reference your sounds to play. This code will play the references ScriptableObject sound effect.

AKAudioManager.instance.Play(VariableName);

LINK TO AUDIO REFERENCE GUIDE

Adjusting Audio Effect Volume:

⏭️
Audio Effect Volume