c# - How to convert nullable int to int - Stack Overflow
Vector3?からVector3へキャストできなかった。
public void Hoge (Vector3? pos = null) { if (pos != null) { Vector3 v = pos.GetValueOrDefault ();
のようにした。
c# - How to convert nullable int to int - Stack Overflow
Vector3?からVector3へキャストできなかった。
public void Hoge (Vector3? pos = null) { if (pos != null) { Vector3 v = pos.GetValueOrDefault ();
のようにした。