{"id":187,"date":"2015-06-10T11:47:03","date_gmt":"2015-06-10T02:47:03","guid":{"rendered":"https:\/\/cg-method.com\/unity\/?p=187"},"modified":"2026-09-26T12:35:00","modified_gmt":"2026-09-26T03:35:00","slug":"unity-playoneshot","status":"publish","type":"post","link":"https:\/\/cg-method.com\/unity\/unity-playoneshot\/","title":{"rendered":"Unity\u2502AudioSource.PlayOneShot\u3067\u52b9\u679c\u97f3\u3092\u9cf4\u3089\u3059\u65b9\u6cd5"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u672c\u8a18\u4e8b\u3067\u306f\u3001Unity\u521d\u5fc3\u8005\u5411\u3051\u306b\u52b9\u679c\u97f3\u306e\u518d\u751f\u624b\u9806\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u73fe\u5728\u306eUnity\u3067\u52d5\u4f5c\u3059\u308b\u66f8\u304d\u65b9\u306b\u66f4\u65b0\u3057\u3001\u57fa\u672c\u7684\u306a\u5b9f\u88c5\u624b\u9806\u3092\u4e01\u5be7\u306b\u6574\u7406\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u3010Unity\u3011AudioSource.PlayOneShot\u3067\u52b9\u679c\u97f3\u3092\u9cf4\u3089\u3059\u65b9\u6cd5\u3010\u521d\u5fc3\u8005\u5411\u3051\u3011<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Unity\u3067\u30b2\u30fc\u30e0\u306b\u52b9\u679c\u97f3\u3084BGM\u3092\u7d44\u307f\u8fbc\u3080\u624b\u9806\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u969b\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u97f3\u3092\u9cf4\u3089\u3059\u624b\u9806\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Unity\u3067\u4f7f\u3048\u308b\u97f3\u58f0\u30d5\u30a1\u30a4\u30eb\u5f62\u5f0f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u306f\u3058\u3081\u306b\u3001Unity\u3067\u4e3b\u306b\u4f7f\u308f\u308c\u308b\u97f3\u58f0\u30d5\u30a1\u30a4\u30eb\u5f62\u5f0f\u3068\u305d\u308c\u305e\u308c\u306e\u7279\u5fb4\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u5f62\u5f0f<\/th><th>\u7279\u5fb4<\/th><th>\u5411\u3044\u3066\u3044\u308b\u7528\u9014<\/th><\/tr><\/thead><tbody><tr><td>WAV \/ AIFF<\/td><td>\u7121\u5727\u7e2e\u3067\u9ad8\u97f3\u8cea\u3002\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u306f\u5927\u304d\u3044\u304c\u518d\u751f\u6642\u306eCPU\u8ca0\u8377\u304c\u4f4e\u3044<\/td><td>\u52b9\u679c\u97f3\uff08SE\uff09<\/td><\/tr><tr><td>MP3 \/ OGG<\/td><td>\u5727\u7e2e\u5f62\u5f0f\u3067\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u304c\u5c0f\u3055\u3044\u3002\u308f\u305a\u304b\u306b\u97f3\u8cea\u304c\u52a3\u5316\u3059\u308b\u5834\u5408\u304c\u3042\u308b<\/td><td>BGM<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u57fa\u672c\u7684\u306b\u306f\u3001\u518d\u751f\u6642\u9593\u304c\u77ed\u3044\u52b9\u679c\u97f3\u306b\u306fWAV\u5f62\u5f0f\u3092\u3001\u518d\u751f\u6642\u9593\u304c\u9577\u3044BGM\u306b\u306fMP3\u5f62\u5f0f\u307e\u305f\u306fOGG\u5f62\u5f0f\u3092\u9078\u3076\u306e\u304c\u6a19\u6e96\u7684\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u97f3\u3092\u9cf4\u3089\u3059\u4ed5\u7d44\u307f\u3092\u7406\u89e3\u3057\u3088\u3046<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Unity\u3067\u97f3\u58f0\u3092\u518d\u751f\u3059\u308b\u306b\u306f\u3001\u307e\u305a\u57fa\u672c\u3068\u306a\u308b3\u3064\u306e\u8981\u7d20\u306e\u5f79\u5272\u3092\u628a\u63e1\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8<\/th><th>\u5f79\u5272<\/th><\/tr><\/thead><tbody><tr><td>AudioClip<\/td><td>\u97f3\u58f0\u30c7\u30fc\u30bf\u305d\u306e\u3082\u306e<\/td><\/tr><tr><td>AudioSource<\/td><td>\u97f3\u3092\u518d\u751f\u3059\u308b\u30b9\u30d4\u30fc\u30ab\u30fc<\/td><\/tr><tr><td>AudioListener<\/td><td>\u97f3\u3092\u805e\u304f\u30de\u30a4\u30af\u3084\u8033\u306e\u5f79\u5272\u3002\u521d\u671f\u72b6\u614b\u306eMain Camera\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u304a\u308a\u3001\u30b7\u30fc\u30f3\u5185\u306b1\u3064\u3060\u3051\u914d\u7f6e\u3059\u308b<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u65b9\u6cd51\uff1a\u3068\u308a\u3042\u3048\u305a\u97f3\u3092\u9cf4\u3089\u3057\u3066\u307f\u308b\uff08\u30b3\u30fc\u30c9\u306a\u3057\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u3082\u3063\u3068\u3082\u30b7\u30f3\u30d7\u30eb\u306a\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u304b\u305a\u306b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u8a2d\u5b9a\u3060\u3051\u3067\u97f3\u3092\u518d\u751f\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Hierarchy\u3067\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u300cCreate Empty\u300d\u3092\u9078\u629e\u3057\u3066\u7a7a\u306eGameObject\u3092\u4f5c\u6210\u3059\u308b<\/li>\n\n\n\n<li>\u4f5c\u6210\u3057\u305fGameObject\u3092\u9078\u629e\u3057\u3001Inspector\u3067\u300cAdd Component\u300d\u304b\u3089\u300cAudio Source\u300d\u3092\u8ffd\u52a0\u3059\u308b<\/li>\n\n\n\n<li>Audio Source\u306e\u300cAudioClip\u300d\u6b04\u306b\u3001\u9cf4\u3089\u3057\u305f\u3044\u97f3\u58f0\u30d5\u30a1\u30a4\u30eb\u3092\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3059\u308b<\/li>\n\n\n\n<li>Audio Source\u306e\u300cPlay On Awake\u300d\u306b\u30c1\u30a7\u30c3\u30af\u304c\u5165\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n\n\n\n<li>\u30a8\u30c7\u30a3\u30bf\u4e0a\u90e8\u306e\u518d\u751f\u30dc\u30bf\u30f3\u3092\u62bc\u3059<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0a\u306e\u8a2d\u5b9a\u3067\u3001\u30b2\u30fc\u30e0\u958b\u59cb\u3068\u540c\u6642\u306b\u8a2d\u5b9a\u3057\u305f\u97f3\u58f0\u304c\u518d\u751f\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u65b9\u6cd52\uff1a\u30af\u30ea\u30c3\u30af\u3067\u52b9\u679c\u97f3\u3092\u9cf4\u3089\u3059\uff08\u30b3\u30fc\u30c9\u3042\u308a\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u3044\u3001\u30de\u30a6\u30b9\u306e\u5de6\u30af\u30ea\u30c3\u30af\u3068\u53f3\u30af\u30ea\u30c3\u30af\u3067\u7570\u306a\u308b\u52b9\u679c\u97f3\u3092\u9cf4\u3089\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u624b\u9806<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Hierarchy\u3067\u7a7a\u306eGameObject\u3092\u4f5c\u6210\u3057\u3001Audio Source\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u8ffd\u52a0\u3059\u308b<\/li>\n\n\n\n<li>\u4ee5\u4e0b\u306eC#\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u3001\u4f5c\u6210\u3057\u305fGameObject\u306b\u30a2\u30bf\u30c3\u30c1\u3059\u308b<\/li>\n\n\n\n<li>Inspector\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u300cSound 01\u300d\u300cSound 02\u300d\u306e\u5404\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u3001\u9cf4\u3089\u3057\u305f\u3044\u97f3\u58f0\u30d5\u30a1\u30a4\u30eb\u3092\u8a2d\u5b9a\u3059\u308b<\/li>\n\n\n\n<li>\u30b2\u30fc\u30e0\u3092\u518d\u751f\u3057\u3001\u5de6\u30af\u30ea\u30c3\u30af\u304a\u3088\u3073\u53f3\u30af\u30ea\u30c3\u30af\u3067\u305d\u308c\u305e\u308c\u97f3\u304c\u9cf4\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">\u30b9\u30af\u30ea\u30d7\u30c8<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">csharp<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>using UnityEngine;\n\npublic class PlaySound : MonoBehaviour\n{\n    public AudioClip sound01;\n    public AudioClip sound02;\n\n    private AudioSource audioSource;\n\n    void Start()\n    {\n        \/\/ AudioSource\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u53d6\u5f97\n        audioSource = GetComponent&lt;AudioSource&gt;();\n    }\n\n    void Update()\n    {\n        \/\/ \u5de6\u30af\u30ea\u30c3\u30af\u3067 sound01 \u3092\u518d\u751f\n        if (Input.GetMouseButtonUp(0))\n        {\n            audioSource.PlayOneShot(sound01);\n        }\n\n        \/\/ \u53f3\u30af\u30ea\u30c3\u30af\u3067 sound02 \u3092\u518d\u751f\n        if (Input.GetMouseButtonUp(1))\n        {\n            audioSource.PlayOneShot(sound02);\n        }\n    }\n}<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">PlayOneShot\u3068\u306f\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>AudioSource.PlayOneShot()<\/code>\u306f\u3001\u52b9\u679c\u97f3\u306a\u3069\u306e\u30ef\u30f3\u30b7\u30e7\u30c3\u30c8\u518d\u751f\u306b\u9069\u3057\u305fAudioSource\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u7279\u5fb4<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u97f3\u58f0\u30921\u56de\u3060\u3051\u518d\u751f\u3059\u308b<\/li>\n\n\n\n<li>\u540c\u3058AudioSource\u4e0a\u3067\u518d\u751f\u4e2d\u306e\u97f3\u3092\u9014\u5207\u308c\u3055\u305b\u305a\u3001\u97f3\u3092\u91cd\u306d\u3066\u518d\u751f\u3067\u304d\u308b<\/li>\n\n\n\n<li>\u97f3\u91cf\u3092\u7b2c2\u5f15\u6570\u306escaleVolumeBy\u3067\u8abf\u6574\u3067\u304d\u308b<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">csharp<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>\/\/ \u97f3\u91cf70%\u3067\u518d\u751f\u3059\u308b\u4f8b\naudioSource.PlayOneShot(sound01, 0.7f);<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u6ce8\u610f\u70b9<\/strong>\u3068\u3057\u3066\u3001\u77ed\u6642\u9593\u306b\u5927\u91cf\u306e\u97f3\u3092PlayOneShot\u3067\u540c\u6642\u306b\u9cf4\u3089\u3059\u3068\u51e6\u7406\u8ca0\u8377\u304c\u5897\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9023\u5c04\u6642\u306e\u52b9\u679c\u97f3\u306a\u3069\u306f\u540c\u6642\u518d\u751f\u6570\u3084\u518d\u751f\u9593\u9694\u306b\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u3088\u304f\u3042\u308b\u30a8\u30e9\u30fc\u3068\u5bfe\u51e6\u6cd5<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u75c7\u72b6<\/th><th>\u539f\u56e0\u3068\u5bfe\u51e6<\/th><\/tr><\/thead><tbody><tr><td>\u97f3\u304c\u9cf4\u3089\u306a\u3044<\/td><td>AudioListener\u304c\u30b7\u30fc\u30f3\u5185\u306b\u5b58\u5728\u3059\u308b\u304b\u78ba\u8a8d\u3059\u308b\u3002\u30ab\u30e1\u30e9\u3092\u524a\u9664\u3057\u3066\u3044\u308b\u3068\u6d88\u3048\u3066\u3044\u308b\u5834\u5408\u304c\u3042\u308b<\/td><\/tr><tr><td>\u30a8\u30e9\u30fc\u300cAudioSource is missing\u300d<\/td><td>GameObject\u306bAudioSource\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u30a2\u30bf\u30c3\u30c1\u3055\u308c\u3066\u3044\u306a\u3044<\/td><\/tr><tr><td>\u97f3\u304c\u5c0f\u3055\u3044\u30fb\u805e\u3053\u3048\u306a\u3044<\/td><td>AudioSource\u306eVolume\u8a2d\u5b9a\u3084AudioListener\u306e\u914d\u7f6e\u4f4d\u7f6e\u30fb\u97f3\u91cf\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Unity\u306b\u95a2\u3059\u308b\u307b\u304b\u306e\u8a18\u4e8b\u306f\u3001\u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u304b\u3089\u3054\u89a7\u3044\u305f\u3060\u3051\u307e\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2026\/09\/unity-matome-3-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/unity\/unity-matome\/\">Unity\u306e\u4f7f\u3044\u65b9\u30ac\u30a4\u30c9\uff5c\u74b0\u5883\u69cb\u7bc9\u30fbUI\u30fb2D\u30fb\u30a2\u30bb\u30c3\u30c8\u6d3b\u7528<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Unity\u306e\u74b0\u5883\u69cb\u7bc9\u3001UI\u5236\u4f5c\u30012D\u7d20\u6750\u306e\u7d44\u307f\u8fbc\u307f\u3001\u30a2\u30bb\u30c3\u30c8\u5c0e\u5165\u3001Prefab\u7ba1\u7406\u3092\u76ee\u7684\u5225\u306b\u6848\u5185\u3002\u66f8\u7c4d\u30fb\u30aa\u30f3\u30e9\u30a4\u30f3\u6559\u6750\u306e\u9078\u3073\u65b9\u3068\u3001\u5236\u4f5c\u4e2d\u306b\u3064\u307e\u305a\u3044\u305f\u3068\u304d\u306e\u89e3\u8aac\u8a18\u4e8b\u3092\u63a2\u305b\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u3066\u3044\u308b\u30b3\u30fc\u30c9\u306f\u3001GitHub\u306e<a href=\"https:\/\/github.com\/MOTOKI-LLC\/cg-method-code\/tree\/main\/unity\/unity-playoneshot\">MOTOKI-LLC\/cg-method-code<\/a>\u306b\u3082\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<!-- cgm-topic:start -->\n\n\n<p class=\"wp-block-paragraph\">Unity\u306e\u57fa\u790e\u3068\u5b66\u7fd2\u306e\u8a18\u4e8b\u306f\u3001\u307b\u304b\u306b\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2016\/10\/multiple-scene-load-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/unity\/multiple-scene-load\/\">Unity\u3067\u30b7\u30fc\u30f3\u3092\u5207\u308a\u66ff\u3048\u308b\u65b9\u6cd5\uff5cSceneManager\u3068UI\u753b\u9762\u306e\u9055\u3044<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Unity\u3067Button\u304b\u3089\u5225Scene\u3078\u79fb\u308b\u624b\u9806\u3092\u89e3\u8aac\u3002Unity 6.3\u306eBuild Profiles\u3068Scene List\u3001SceneManager\u306e\u6700\u5c0f\u30b3\u30fc\u30c9\u3001Single\u30fbAdditive\u30fb\u975e\u540c\u671f\u306e\u9055\u3044\u3001\u540c\u4e00Scene\u306eUI\u79fb\u52d5\u3001\u5931\u6557\u6642\u306e\u78ba\u8a8d\u9806\u3092\u6574\u7406\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2017\/06\/create-vr-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/unity\/create-vr\/\">Unity\u3067\u30b9\u30de\u30dbVR\u3092\u4f5c\u308b\u306b\u306f\uff5cCardboard\u306e\u73fe\u884c\u624b\u9806\u3068Unity 5.6\u65e7\u8cc7\u6599<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u73fe\u884cCardboard XR Plugin\u306e\u5165\u53e3\u3068Unity 5.6\u306e\u65e7\u8a2d\u5b9a\u3092\u5206\u3051\u3066\u89e3\u8aac\u3002Android\u74b0\u5883\u3001\u4e21\u773c\u8868\u793a\u3001\u5b9f\u6a5f\u78ba\u8a8d\u306e\u5207\u308a\u5206\u3051\u3092\u6574\u7406\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2026\/10\/unity-learning-19813-20261003-300x158.png\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/unity\/unity-online-learning\/\">Unity\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\uff5c\u7121\u6599\u306e\u516c\u5f0f\u6559\u6750\u30fb\u65e5\u672c\u8a9e\u8b1b\u5ea7\u306e\u9078\u3073\u65b9<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Unity\u3092\u7121\u6599\u3067\u5b66\u3073\u59cb\u3081\u308b\u516c\u5f0f\u6559\u6750\u3068\u65e5\u672c\u8a9e\u8b1b\u5ea7\u3092\u76ee\u7684\u5225\u306b\u6bd4\u8f03\u3002Unity Learn\u3001ZEN Study\u3001Udemy\u306e\u524d\u63d0\u30fb\u5bfe\u5fdc\u7248\u3068\u3001\u65e7\u8b1b\u5ea7\u306e\u6ce8\u610f\u70b9\u3001\u6700\u521d\u306e\u8ab2\u984c\u3067\u6b62\u307e\u3063\u305f\u3068\u304d\u306e\u78ba\u8a8d\u9806\u3092\u6574\u7406\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/unity\/wp-content\/uploads\/2026\/10\/unity-learning-19825-20261003-300x158.png\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/unity\/unity-engineer-book\/\">Unity\u5165\u9580\u5f8c\u306e\u5c02\u9580\u66f8\u30fb\u95a2\u9023\u66f812\u518a\uff5cC#\u30fb\u30b7\u30a7\u30fc\u30c0\u30fc\u30fb\u6570\u5b66\u30fb\u62e1\u5f35\u3067\u9078\u3076<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Unity\u5165\u9580\u5f8c\u306b\u8aad\u3080\u672c\u3092\u76ee\u7684\u5225\u306b\u6bd4\u8f03\u3002C#\u3001\u30b7\u30a7\u30fc\u30c0\u30fc\u3001\u6570\u5b66\u3001VR\u3001\u30a8\u30c7\u30a3\u30bf\u30fc\u62e1\u5f35\u306e\u516c\u5f0f\u76ee\u6b21\u3068\u5bfe\u5fdc\u6761\u4ef6\u3092\u78ba\u8a8d\u3057\u3001\u65e7\u7248\u8cc7\u6599\u3084\u5225\u8a00\u8a9e\u306e\u66f8\u7c4d\u306e\u4f7f\u3044\u5206\u3051\u3082\u89e3\u8aac\u3057\u307e\u3059\u3002<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<!-- cgm-topic:end -->\n\n\n<h3 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u52b9\u679c\u97f3\u306b\u306fWAV\u3001BGM\u306b\u306fMP3\u3084OGG\u304c\u9069\u3057\u3066\u3044\u308b<\/li>\n\n\n\n<li>\u97f3\u3092\u9cf4\u3089\u3059\u306b\u306fAudioSource\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u5fc5\u8981\u3068\u306a\u308b<\/li>\n\n\n\n<li><code>PlayOneShot()<\/code>\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u540c\u4e00AudioSource\u4e0a\u3067\u52b9\u679c\u97f3\u3092\u91cd\u306d\u3066\u518d\u751f\u3067\u304d\u308b<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u306f\u7c21\u5358\u306a\u52b9\u679c\u97f3\u306e\u518d\u751f\u304b\u3089\u8a66\u3057\u3066\u3001Unity\u3067\u97f3\u3092\u9cf4\u3089\u3059\u57fa\u672c\u64cd\u4f5c\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001Unity\u521d\u5fc3\u8005\u5411\u3051\u306b\u52b9\u679c\u97f3\u306e\u518d\u751f\u624b\u9806\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002 \u30b9\u30af\u30ea\u30d7\u30c8\u306f\u73fe\u5728\u306eUnity\u3067\u52d5\u4f5c\u3059\u308b\u66f8\u304d\u65b9\u306b\u66f4\u65b0\u3057\u3001\u57fa\u672c\u7684\u306a\u5b9f\u88c5\u624b\u9806\u3092\u4e01\u5be7\u306b\u6574\u7406\u3057\u307e\u3057\u305f\u3002 \u3010Unity\u3011AudioSource.PlayOneShot [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":21741,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","book_review_data":"","footnotes":"","ssp_meta_title":"Unity\u306ePlayOneShot\u3067\u52b9\u679c\u97f3\u3092\u9cf4\u3089\u3059\u65b9\u6cd5","ssp_meta_description":"Unity\u521d\u5fc3\u8005\u5411\u3051\u306b\u52b9\u679c\u97f3\u306e\u9cf4\u3089\u3057\u65b9\u3092\u89e3\u8aac\u3002\u30b3\u30fc\u30c9\u4e0d\u8981\u306e\u8a2d\u5b9a\u624b\u9806\u304b\u3089\u3001C#\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u3044\u5de6\u53f3\u30af\u30ea\u30c3\u30af\u3067\u97f3\u3092\u5206\u3051\u308b\u624b\u9806\u3001\u97f3\u3092\u91cd\u306d\u308bPlayOneShot\u306e\u7279\u5fb4\u3084\u9cf4\u3089\u306a\u3044\u30c8\u30e9\u30d6\u30eb\u306e\u5bfe\u51e6\u6cd5\u307e\u3067\u5206\u304b\u308a\u307e\u3059\u3002"},"categories":[25],"tags":[],"class_list":["post-187","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting"],"_links":{"self":[{"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/posts\/187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/comments?post=187"}],"version-history":[{"count":6,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/posts\/187\/revisions"}],"predecessor-version":[{"id":22166,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/posts\/187\/revisions\/22166"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/media\/21741"}],"wp:attachment":[{"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/media?parent=187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/categories?post=187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cg-method.com\/unity\/wp-json\/wp\/v2\/tags?post=187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}