Skip to content

Commit 6f62ce0

Browse files
committed
docs: typo
1 parent 7f753db commit 6f62ce0

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

Assets/JCSUnity/Scripts/Util/JCS_Util.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public static string ToJson<T>(T obj)
291291
#region Component
292292

293293
/// <summary>
294-
/// Get component from current and above layers.
294+
/// Get the component from current and above layers.
295295
/// </summary>
296296
public static T GetComponentAbove<T>(this Component comp)
297297
{
@@ -304,7 +304,7 @@ public static T GetComponentAbove<T>(this Component comp)
304304
}
305305

306306
/// <summary>
307-
/// Get component from current and below layers.
307+
/// Get the component from current and below layers.
308308
/// </summary>
309309
public static T GetComponentBelow<T>(this Component comp)
310310
{
@@ -317,7 +317,7 @@ public static T GetComponentBelow<T>(this Component comp)
317317
}
318318

319319
/// <summary>
320-
/// Get component from all layers.
320+
/// Get the component from all layers.
321321
/// </summary>
322322
public static T GetComponentAll<T>(this Component comp)
323323
{

docs/ScriptReference/Util/JCS_Util.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,17 @@ All code utility is stored here.
1919
| Parse | Parse `str` to float, return `defaultValue` if failed. |
2020
| Parse | Parse `str` to boolean, return `defaultValue` if failed. |
2121
| ToJson | Serialize object to JSON string. |
22+
| GetComponentAbove | Get the component from current and above layers. |
23+
| GetComponentBelow | Get the component from current and below layers. |
24+
| GetComponentAll | Get the component from all layers. |
25+
| GetComponentsAbove | Get components from current and above layers. |
26+
| GetComponentsBelow | Get components from current and below layers. |
27+
| GetComponentsAll | Get components from all layers. |
2228
| EnableComponent | Do enable/distance component. |
23-
| ForceGetComponent | Force to get a component, if not found add one new then. |
29+
| EnableComponents | Set enable/disable to all component on this transform. |
2430
| SetActiveToAllChildren | Active all the child in a transform. |
2531
| MoveToTheLastChild | Make the transform to the last transform of the current parent transform. |
2632
| SetParentWithoutLosingInfo | Set the transform to another transform without losing it's info. (position, rotation, scale) |
27-
| SetEnableAllComponents | Set enable/disable to all component on this transform. |
2833
| DetachChildren | Detach all the child from a transform. |
2934
| ForceDetachChildren | Force detach all the child from a transform. |
3035
| AttachChildren | Attach all the childs to this transform. |

0 commit comments

Comments
 (0)