public List<string> stringList; } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. using UnityEditor; [CustomEditor(typeof(InspectorExample))] public class InspectorExampleEditor : Editor { private SerializedProperty intArray; private SerializedProperty stringList; private void OnEnable() { intArray ...
When Unity loads a project, the Unity Package Manager reads the project manifest so that it can compute a list of which packages to retrieve and load. When a user installs or uninstalls a package through the Package Manager window, the Package Manager stores those changes in the project ...
public List<InventoryItemList> lists; } [System.Serializable] public class InventoryItemList { public string listName; public List<InventoryItem> items; public InventoryItemList(string name) { listName = name; items = new List<InventoryItem>(); } } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10...
Tip: You can find out more about what each built-in package (module) implements in theUnity Scripting API. Each module assembly page lists which APIs the built-in package implements. ServicesA Unity facility that provides a growing range of complimentary services to help you make games and eng...
Change RowCount when you alter the length of the list, or Clear() and Refresh() to empty or update content in-place. Limitations This is not a general purpose grid view like you'll find in the Asset Store, it's just for lists. Specifically: ...
Styles can be overridden on per-list basis if desired. Subclass list control to override context menu. Add drop-down to add menu (or instead of add menu). Helper functionality to build element adder menus. Preview (showing drop insertion feature) ...
privateList<string> assetPaths =newList<string>(); #endregion #region ===属性=== #endregion #region ===Unity事件=== 快捷键: Ctrl Shift M /Ctrl Shift Q 实现 /// /// 主要在这里显示内容 /// voidOnGUI() { EditorGUILayout.Space...
/// Number of logs to keep before removing old ones. /// publicintmaxLogs = 1000; #endregion readonlyList<Log> logs =newList<Log>(); Vector2 scrollPosition; boolvisible; boolcollapse; // Visual elements: staticreadonlyDictionary<LogType, Color> logTypeColors =newDictionary<LogType, Col...
Select the active debug target from a list of saved or recently-used debug targets (See Options dialog). Create function breakpoints on MonoBehavior methods and apply them to multiple MonoBehavior classes. Support Make Object ID in the debugger. Support breakpoint hit count in the debugger. Supp...
/// Maximum accomulated size of the stored buffers. /// public static long MaxPoolSize = 10 * 1024 * 1024; /// /// Whether to remove empty buffer stores from the free list. /// public static bool RemoveEmptyLists = true; /// /// If it set to true...