Error
CS0119
參考資料:(https://home.gamer.com.tw/creationDetail.php?sn=3406435)
error CS0119: Expression denotes a `type', where a `variable', `value' or `method group' was expected
●原本:
A.transform.localScale = Vector3(localScale.x ,localScale.y ,localScale.z);
●改成(※多加一個new):
A.transform.localScale = new Vector3(localScale.x ,localScale.y ,localScale.z);
[註] ↑這是改變A的大小的程式中的某一行~
Last updated
Was this helpful?