简体   繁体   中英

error CS1729: The type `UnityEngine.Rect' does not contain a constructor that takes `5' arguments

Please Help Me. This error occures on like 39

Line 39: GUI.Label (new Rect (Screen.width / 2 - 150, 200, 2000, 1000, "PLAYER ONE WINS"));

Please help me :c. Thanks!

Did you put the closing brackets in the wrong place?

Try this:

GUI.Label (new Rect (Screen.width / 2 - 150, 200, 2000, 1000), "PLAYER ONE WINS");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM