コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

2015-05-17から1日間の記事一覧

【Unity】名前付き引数とref、outキーワードを併用するとエラー

概要 public class ExampleClass { public ExampleClass() { var str = ""; // error CS1525: Unexpected symbol `ref' Example( str1 : ref str, str2 : out str ); } public void Example( ref string str1, out string str2 ) { str2 = ""; } } Unityでは…