お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseEditor上で表示を行うための変数名を作成します
大文字のところにはスペースを挿入したり、変数名で使われる先頭の _
や
k
や m_
を削除して見やすくします。
// prints "My Variable" print (ObjectNames.NicifyVariableName ("MyVariable")); // prints "The Other Variable" print (ObjectNames.NicifyVariableName ("m_TheOtherVariable")); // prints "Some Constant" print (ObjectNames.NicifyVariableName ("kSomeConstant"));