com.wallstop-studios.unity-helpers 2.0.0-rc77.5 → 2.0.0-rc77.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,10 +24,13 @@
24
24
  }
25
25
 
26
26
  bool anyChanged = Helpers.CachedLabels.Count == 0;
27
- InitializeCacheIfNeeded();
28
27
 
29
28
  foreach (string path in importedAssets)
30
29
  {
30
+ if (!path.StartsWith("Assets", StringComparison.OrdinalIgnoreCase))
31
+ {
32
+ continue;
33
+ }
31
34
  if (
32
35
  !path.EndsWith(".png", StringComparison.OrdinalIgnoreCase)
33
36
  && !path.EndsWith(".jpg", StringComparison.OrdinalIgnoreCase)
@@ -84,11 +87,6 @@
84
87
  }
85
88
  }
86
89
 
87
- private static void InitializeCacheIfNeeded()
88
- {
89
- _ = Helpers.GetAllSpriteLabelNames();
90
- }
91
-
92
90
  private static bool AreEqual(string[] a, string[] b)
93
91
  {
94
92
  if (a == null && b == null)
@@ -64,6 +64,12 @@
64
64
  nameof(SpriteCropper)
65
65
  );
66
66
 
67
+ using (new GUILayout.HorizontalScope())
68
+ {
69
+ EditorGUILayout.LabelField("Sprite Name Regex", EditorStyles.boldLabel);
70
+ _spriteNameRegex = EditorGUILayout.TextField(_spriteNameRegex);
71
+ }
72
+
67
73
  _serializedObject.ApplyModifiedProperties();
68
74
  if (GUILayout.Button("Find Sprites To Process"))
69
75
  {
@@ -5,27 +5,35 @@
5
5
  </assembly>
6
6
  <members>
7
7
  <member name="T:System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1">
8
- <summary>Provides the core logic for implementing a manual-reset <see cref="T:System.Threading.Tasks.Sources.IValueTaskSource"/> or <see cref="T:System.Threading.Tasks.Sources.IValueTaskSource`1"/>.</summary>
8
+ <summary
9
+ >Provides the core logic for implementing a manual-reset <see cref="T:System.Threading.Tasks.Sources.IValueTaskSource" /> or <see cref="T:System.Threading.Tasks.Sources.IValueTaskSource`1" />.</summary
10
+ >
9
11
  <typeparam name="TResult"></typeparam>
10
12
  </member>
11
13
  <member name="F:System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1._continuation">
12
14
  <summary>
13
- The callback to invoke when the operation completes if <see cref="M:System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.OnCompleted(System.Action{System.Object},System.Object,System.Int16,System.Threading.Tasks.Sources.ValueTaskSourceOnCompletedFlags)"/> was called before the operation completed,
14
- or <see cref="F:System.Threading.Tasks.Sources.ManualResetValueTaskSourceCoreShared.s_sentinel"/> if the operation completed before a callback was supplied,
15
+ The callback to invoke when the operation completes if <see cref="M:System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.OnCompleted(System.Action{System.Object},System.Object,System.Int16,System.Threading.Tasks.Sources.ValueTaskSourceOnCompletedFlags)" /> was called before the operation completed,
16
+ or <see cref="F:System.Threading.Tasks.Sources.ManualResetValueTaskSourceCoreShared.s_sentinel" /> if the operation completed before a callback was supplied,
15
17
  or null if a callback hasn't yet been provided and the operation hasn't yet completed.
16
- </summary>
18
+ </summary
19
+ >
17
20
  </member>
18
21
  <member name="F:System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1._continuationState">
19
- <summary>State to pass to <see cref="F:System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1._continuation"/>.</summary>
22
+ <summary
23
+ >State to pass to <see cref="F:System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1._continuation" />.</summary
24
+ >
20
25
  </member>
21
26
  <member name="F:System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1._executionContext">
22
- <summary><see cref="T:System.Threading.ExecutionContext"/> to flow to the callback, or null if no flowing is required.</summary>
27
+ <summary>
28
+ <see cref="T:System.Threading.ExecutionContext" /> to flow to the callback, or null if no flowing is required.</summary
29
+ >
23
30
  </member>
24
31
  <member name="F:System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1._capturedContext">
25
32
  <summary>
26
- A "captured" <see cref="T:System.Threading.SynchronizationContext"/> or <see cref="T:System.Threading.Tasks.TaskScheduler"/> with which to invoke the callback,
33
+ A "captured" <see cref="T:System.Threading.SynchronizationContext" /> or <see cref="T:System.Threading.Tasks.TaskScheduler" /> with which to invoke the callback,
27
34
  or null if no special context is required.
28
- </summary>
35
+ </summary
36
+ >
29
37
  </member>
30
38
  <member name="F:System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1._completed">
31
39
  <summary>Whether the current operation has completed.</summary>
@@ -59,22 +67,34 @@
59
67
  </member>
60
68
  <member name="M:System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetStatus(System.Int16)">
61
69
  <summary>Gets the status of the operation.</summary>
62
- <param name="token">Opaque value that was provided to the <see cref="T:System.Threading.Tasks.ValueTask"/>'s constructor.</param>
70
+ <param name="token"
71
+ >Opaque value that was provided to the <see cref="T:System.Threading.Tasks.ValueTask" />'s constructor.</param
72
+ >
63
73
  </member>
64
74
  <member name="M:System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetResult(System.Int16)">
65
75
  <summary>Gets the result of the operation.</summary>
66
- <param name="token">Opaque value that was provided to the <see cref="T:System.Threading.Tasks.ValueTask"/>'s constructor.</param>
76
+ <param name="token"
77
+ >Opaque value that was provided to the <see cref="T:System.Threading.Tasks.ValueTask" />'s constructor.</param
78
+ >
67
79
  </member>
68
80
  <member name="M:System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.OnCompleted(System.Action{System.Object},System.Object,System.Int16,System.Threading.Tasks.Sources.ValueTaskSourceOnCompletedFlags)">
69
81
  <summary>Schedules the continuation action for this operation.</summary>
70
- <param name="continuation">The continuation to invoke when the operation has completed.</param>
71
- <param name="state">The state object to pass to <paramref name="continuation"/> when it's invoked.</param>
72
- <param name="token">Opaque value that was provided to the <see cref="T:System.Threading.Tasks.ValueTask"/>'s constructor.</param>
82
+ <param name="continuation"
83
+ >The continuation to invoke when the operation has completed.</param
84
+ >
85
+ <param name="state"
86
+ >The state object to pass to <paramref name="continuation" /> when it's invoked.</param
87
+ >
88
+ <param name="token"
89
+ >Opaque value that was provided to the <see cref="T:System.Threading.Tasks.ValueTask" />'s constructor.</param
90
+ >
73
91
  <param name="flags">The flags describing the behavior of the continuation.</param>
74
92
  </member>
75
93
  <member name="M:System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.ValidateToken(System.Int16)">
76
94
  <summary>Ensures that the specified token matches the current version.</summary>
77
- <param name="token">The token supplied by <see cref="T:System.Threading.Tasks.ValueTask"/>.</param>
95
+ <param name="token"
96
+ >The token supplied by <see cref="T:System.Threading.Tasks.ValueTask" />.</param
97
+ >
78
98
  </member>
79
99
  <member name="M:System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.SignalCompletion">
80
100
  <summary>Signals that the operation has completed. Invoked after the result or error has been set.</summary>
@@ -82,42 +102,57 @@
82
102
  <member name="M:System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.InvokeContinuation">
83
103
  <summary>
84
104
  Invokes the continuation with the appropriate captured context / scheduler.
85
- This assumes that if <see cref="F:System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1._executionContext"/> is not null we're already
86
- running within that <see cref="T:System.Threading.ExecutionContext"/>.
87
- </summary>
105
+ This assumes that if <see cref="F:System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1._executionContext" /> is not null we're already
106
+ running within that <see cref="T:System.Threading.ExecutionContext" />.
107
+ </summary
108
+ >
88
109
  </member>
89
110
  <member name="T:System.Threading.Tasks.TaskAsyncEnumerableExtensions">
90
- <summary>Provides a set of static methods for configuring <see cref="T:System.Threading.Tasks.Task"/>-related behaviors on asynchronous enumerables and disposables.</summary>
111
+ <summary
112
+ >Provides a set of static methods for configuring <see cref="T:System.Threading.Tasks.Task" />-related behaviors on asynchronous enumerables and disposables.</summary
113
+ >
91
114
  </member>
92
115
  <member name="M:System.Threading.Tasks.TaskAsyncEnumerableExtensions.ConfigureAwait(System.IAsyncDisposable,System.Boolean)">
93
116
  <summary>Configures how awaits on the tasks returned from an async disposable will be performed.</summary>
94
117
  <param name="source">The source async disposable.</param>
95
- <param name="continueOnCapturedContext">Whether to capture and marshal back to the current context.</param>
118
+ <param name="continueOnCapturedContext"
119
+ >Whether to capture and marshal back to the current context.</param
120
+ >
96
121
  <returns>The configured async disposable.</returns>
97
122
  </member>
98
123
  <member name="M:System.Threading.Tasks.TaskAsyncEnumerableExtensions.ConfigureAwait``1(System.Collections.Generic.IAsyncEnumerable{``0},System.Boolean)">
99
124
  <summary>Configures how awaits on the tasks returned from an async iteration will be performed.</summary>
100
125
  <typeparam name="T">The type of the objects being iterated.</typeparam>
101
126
  <param name="source">The source enumerable being iterated.</param>
102
- <param name="continueOnCapturedContext">Whether to capture and marshal back to the current context.</param>
127
+ <param name="continueOnCapturedContext"
128
+ >Whether to capture and marshal back to the current context.</param
129
+ >
103
130
  <returns>The configured enumerable.</returns>
104
131
  </member>
105
132
  <member name="M:System.Threading.Tasks.TaskAsyncEnumerableExtensions.WithCancellation``1(System.Collections.Generic.IAsyncEnumerable{``0},System.Threading.CancellationToken)">
106
- <summary>Sets the <see cref="T:System.Threading.CancellationToken"/> to be passed to <see cref="M:System.Collections.Generic.IAsyncEnumerable`1.GetAsyncEnumerator(System.Threading.CancellationToken)"/> when iterating.</summary>
133
+ <summary
134
+ >Sets the <see cref="T:System.Threading.CancellationToken" /> to be passed to <see cref="M:System.Collections.Generic.IAsyncEnumerable`1.GetAsyncEnumerator(System.Threading.CancellationToken)" /> when iterating.</summary
135
+ >
107
136
  <typeparam name="T">The type of the objects being iterated.</typeparam>
108
137
  <param name="source">The source enumerable being iterated.</param>
109
- <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken"/> to use.</param>
138
+ <param name="cancellationToken"
139
+ >The <see cref="T:System.Threading.CancellationToken" /> to use.</param
140
+ >
110
141
  <returns>The configured enumerable.</returns>
111
142
  </member>
112
143
  <member name="T:System.Runtime.CompilerServices.AsyncIteratorMethodBuilder">
113
144
  <summary>Represents a builder for asynchronous iterators.</summary>
114
145
  </member>
115
146
  <member name="M:System.Runtime.CompilerServices.AsyncIteratorMethodBuilder.Create">
116
- <summary>Creates an instance of the <see cref="T:System.Runtime.CompilerServices.AsyncIteratorMethodBuilder"/> struct.</summary>
147
+ <summary
148
+ >Creates an instance of the <see cref="T:System.Runtime.CompilerServices.AsyncIteratorMethodBuilder" /> struct.</summary
149
+ >
117
150
  <returns>The initialized instance.</returns>
118
151
  </member>
119
152
  <member name="M:System.Runtime.CompilerServices.AsyncIteratorMethodBuilder.MoveNext``1(``0@)">
120
- <summary>Invokes <see cref="M:System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext"/> on the state machine while guarding the <see cref="T:System.Threading.ExecutionContext"/>.</summary>
153
+ <summary
154
+ >Invokes <see cref="M:System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext" /> on the state machine while guarding the <see cref="T:System.Threading.ExecutionContext" />.</summary
155
+ >
121
156
  <typeparam name="TStateMachine">The type of the state machine.</typeparam>
122
157
  <param name="stateMachine">The state machine instance, passed by reference.</param>
123
158
  </member>
@@ -145,26 +180,42 @@
145
180
  <summary>Indicates whether a method is an asynchronous iterator.</summary>
146
181
  </member>
147
182
  <member name="M:System.Runtime.CompilerServices.AsyncIteratorStateMachineAttribute.#ctor(System.Type)">
148
- <summary>Initializes a new instance of the <see cref="T:System.Runtime.CompilerServices.AsyncIteratorStateMachineAttribute"/> class.</summary>
149
- <param name="stateMachineType">The type object for the underlying state machine type that's used to implement a state machine method.</param>
183
+ <summary
184
+ >Initializes a new instance of the <see cref="T:System.Runtime.CompilerServices.AsyncIteratorStateMachineAttribute" /> class.</summary
185
+ >
186
+ <param name="stateMachineType"
187
+ >The type object for the underlying state machine type that's used to implement a state machine method.</param
188
+ >
150
189
  </member>
151
190
  <member name="T:System.Runtime.CompilerServices.ConfiguredAsyncDisposable">
152
- <summary>Provides a type that can be used to configure how awaits on an <see cref="T:System.IAsyncDisposable"/> are performed.</summary>
191
+ <summary
192
+ >Provides a type that can be used to configure how awaits on an <see cref="T:System.IAsyncDisposable" /> are performed.</summary
193
+ >
153
194
  </member>
154
195
  <member name="T:System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1">
155
196
  <summary>Provides an awaitable async enumerable that enables cancelable iteration and configured awaits.</summary>
156
197
  </member>
157
198
  <member name="M:System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1.ConfigureAwait(System.Boolean)">
158
199
  <summary>Configures how awaits on the tasks returned from an async iteration will be performed.</summary>
159
- <param name="continueOnCapturedContext">Whether to capture and marshal back to the current context.</param>
200
+ <param name="continueOnCapturedContext"
201
+ >Whether to capture and marshal back to the current context.</param
202
+ >
160
203
  <returns>The configured enumerable.</returns>
161
- <remarks>This will replace any previous value set by <see cref="M:System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1.ConfigureAwait(System.Boolean)"/> for this iteration.</remarks>
204
+ <remarks
205
+ >This will replace any previous value set by <see cref="M:System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1.ConfigureAwait(System.Boolean)" /> for this iteration.</remarks
206
+ >
162
207
  </member>
163
208
  <member name="M:System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1.WithCancellation(System.Threading.CancellationToken)">
164
- <summary>Sets the <see cref="T:System.Threading.CancellationToken"/> to be passed to <see cref="M:System.Collections.Generic.IAsyncEnumerable`1.GetAsyncEnumerator(System.Threading.CancellationToken)"/> when iterating.</summary>
165
- <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken"/> to use.</param>
209
+ <summary
210
+ >Sets the <see cref="T:System.Threading.CancellationToken" /> to be passed to <see cref="M:System.Collections.Generic.IAsyncEnumerable`1.GetAsyncEnumerator(System.Threading.CancellationToken)" /> when iterating.</summary
211
+ >
212
+ <param name="cancellationToken"
213
+ >The <see cref="T:System.Threading.CancellationToken" /> to use.</param
214
+ >
166
215
  <returns>The configured enumerable.</returns>
167
- <remarks>This will replace any previous <see cref="T:System.Threading.CancellationToken"/> set by <see cref="M:System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1.WithCancellation(System.Threading.CancellationToken)"/> for this iteration.</remarks>
216
+ <remarks
217
+ >This will replace any previous <see cref="T:System.Threading.CancellationToken" /> set by <see cref="M:System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1.WithCancellation(System.Threading.CancellationToken)" /> for this iteration.</remarks
218
+ >
168
219
  </member>
169
220
  <member name="T:System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1.Enumerator">
170
221
  <summary>Provides an awaitable async enumerator that enables cancelable iteration and configured awaits.</summary>
@@ -172,10 +223,11 @@
172
223
  <member name="M:System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1.Enumerator.MoveNextAsync">
173
224
  <summary>Advances the enumerator asynchronously to the next element of the collection.</summary>
174
225
  <returns>
175
- A <see cref="T:System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1"/> that will complete with a result of <c>true</c>
226
+ A <see cref="T:System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1" /> that will complete with a result of <c>true</c>
176
227
  if the enumerator was successfully advanced to the next element, or <c>false</c> if the enumerator has
177
228
  passed the end of the collection.
178
- </returns>
229
+ </returns
230
+ >
179
231
  </member>
180
232
  <member name="P:System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable`1.Enumerator.Current">
181
233
  <summary>Gets the element in the collection at the current position of the enumerator.</summary>
@@ -192,7 +244,9 @@
192
244
  </member>
193
245
  <member name="M:System.Collections.Generic.IAsyncEnumerable`1.GetAsyncEnumerator(System.Threading.CancellationToken)">
194
246
  <summary>Returns an enumerator that iterates asynchronously through the collection.</summary>
195
- <param name="cancellationToken">A <see cref="T:System.Threading.CancellationToken"/> that may be used to cancel the asynchronous iteration.</param>
247
+ <param name="cancellationToken"
248
+ >A <see cref="T:System.Threading.CancellationToken" /> that may be used to cancel the asynchronous iteration.</param
249
+ >
196
250
  <returns>An enumerator that can be used to iterate asynchronously through the collection.</returns>
197
251
  </member>
198
252
  <member name="T:System.Collections.Generic.IAsyncEnumerator`1">
@@ -202,10 +256,11 @@
202
256
  <member name="M:System.Collections.Generic.IAsyncEnumerator`1.MoveNextAsync">
203
257
  <summary>Advances the enumerator asynchronously to the next element of the collection.</summary>
204
258
  <returns>
205
- A <see cref="T:System.Threading.Tasks.ValueTask`1"/> that will complete with a result of <c>true</c> if the enumerator
259
+ A <see cref="T:System.Threading.Tasks.ValueTask`1" /> that will complete with a result of <c>true</c> if the enumerator
206
260
  was successfully advanced to the next element, or <c>false</c> if the enumerator has passed the end
207
261
  of the collection.
208
- </returns>
262
+ </returns
263
+ >
209
264
  </member>
210
265
  <member name="P:System.Collections.Generic.IAsyncEnumerator`1.Current">
211
266
  <summary>Gets the element in the collection at the current position of the enumerator.</summary>