InstantiateTypeNames
How do I use Instantiate Type Names
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
8 | private string[] InstantiateTypeNames = {"Mine", "Scene"}; | 1 |
36 | InstantiateType = GUILayout.Toolbar(InstantiateType, InstantiateTypeNames); | 2 |
File name: OnClickInstantiate.cs
Copy
31 void OnGUI()
32 {
33 if (showGui)
34 {
35 GUILayout.BeginArea(new Rect(Screen.width - 180, 0, 180, 50));
36 InstantiateType = GUILayout.Toolbar(InstantiateType, InstantiateTypeNames);
37 GUILayout.EndArea();
38 }
39 }
InstantiateTypeNames 128 lượt xem
Gõ tìm kiếm nhanh...