To make a window that gets its size from automatic GUI layouting, use GUILayout.Window. Call Ordering Windows need to be drawn back-to-front; windows on top of other windows need to be drawn later than the ones below them. This means that you can not count on your DoWindow functions to be called in any particular order. In order for this to work seamlessly, the following values are stored when you create your window (using the Window function), and retrieved when your DoWindow gets called: GUI.skin, GUI.enabled, GUI.color, GUI.backgroundColor, GUI.contentColor, GUI.matrix.
การ GUILayout.Window ทำให้หน้าต่างที่ได้รับขนาดจาก layouting GUI อัตโนมัติ โทรสั่งซื้อ Windows จำเป็นต้อง วาดกลับไปหน้า windows บน windows อื่น ๆ จำเป็นต้องดึงหลังด้านล่างพวกเขา ซึ่งหมายความ ว่า คุณไม่สามารถนับที่ในฟังก์ชันของคุณ DoWindow จะเรียกลำดับใด ๆ ในใบสั่งนี้ทำงานอย่างราบรื่น ค่าต่อไปนี้จะถูกเก็บไว้เมื่อคุณสร้างหน้าต่าง (โดยใช้ฟังก์ชันหน้าต่าง), และเรียกใช้เมื่อได้รับการเรียกว่า DoWindow ของคุณ: GUI.skin, GUI.enabled, GUI.color, GUI.backgroundColor, GUI.contentColor, GUI.matrix.
การแปล กรุณารอสักครู่..
