Skip to content

Instantly share code, notes, and snippets.

@triacontane
Last active January 19, 2021 15:42
Show Gist options
  • Save triacontane/5e2284b65f639ded886d0ea43ffe988f to your computer and use it in GitHub Desktop.
Save triacontane/5e2284b65f639ded886d0ea43ffe988f to your computer and use it in GitHub Desktop.
プラグインパラメータで使用するSEのstruct
/*~struct~SE:
*
* @param name
* @text ファイル名
* @desc ファイル名です。
* @require 1
* @dir audio/se/
* @type file
* @default
*
* @param volume
* @text ボリューム
* @desc ボリュームです。
* @type number
* @default 90
* @min 0
* @max 100
*
* @param pitch
* @text ピッチ
* @desc ピッチです。
* @type number
* @default 100
* @min 50
* @max 150
*
* @param pan
* @text 定位
* @desc 定位(左右バランス)です。
* @type number
* @default 0
* @min -100
* @max 100
*/
/*:
* @param se
* @text 効果音
* @desc 効果音です。
* @type struct<SE>
* @default
*/
@triacontane
Copy link
Author

プロパティ名を一致させればパラメータをそのままAudioManager.playSeに渡すことも可能

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment