@@ -6,21 +6,36 @@ All code utility is stored here.
66
77| Name | Description |
88| :-------------------------------------| :--------------------------------------------------------------------------------------------------|
9+ | IsNumberString | Check if the string is a number string. |
10+ | Parse | Parse ` str ` to integer, return ` defaultValue ` if failed. |
11+ | Parse | Parse ` str ` to float, return ` defaultValue ` if failed. |
12+ | Parse | Parse ` str ` to boolean, return ` defaultValue ` if failed. |
13+ | GetValues | Get the value for each enum, use to loop through the enum. |
14+ | EnumSize | Returns the length of an enumerator. |
15+ | WithInRange | Check if the value is within the range. |
16+ | WithInRange | Check if the index valid within the array length. |
17+ | LoopIn | Make the index is within the array length by setting the maxinum of (legnth - 1) or mininum of 0. |
18+ | MergeArrays | Merge multiple arrays into one array. |
19+ | MergeArrays2 | Merge two array and return the new array. |
20+ | MergeList | Merge the two lists and return the new list. |
21+ | CopyBtyeArray | Copy byte array to another byte array memory space. |
22+ | IsArrayEmpty | Check if the string array is empty. |
23+ | ListPopFront | Pop the first value from the list. |
24+ | ListPopBack | Pop the last value from the list. |
25+ | BytesToString | Convert byte array to string by charset type. |
26+ | StringToBytes | Convert string to byte array by charset type. |
27+ | EscapeURL | Simple version of escape url. |
28+ | ToJson | Serialize object to JSON string. |
929| EnableComponent | Do enable/distance component. |
1030| ForceGetComponent | Force to get a component, if not found add one new then. |
1131| Instantiate | Spawn a game object. |
1232| FindObjectByType | Retrieves the first active loaded object of Type type. |
1333| FindObjectsByType | Retrieves a list of all loaded objects of Type type. |
14- | WithInRange | Check if the value is within the range. |
15- | WithInRange | Check if the index valid within the array length. |
16- | LoopIn | Make the index is within the array length by setting the maxinum of (legnth - 1) or mininum of 0. |
1734| SpawnAnimateObject | Spawn a gameobject with animation attached. |
1835| SpawnAnimateObjectDeathEvent | Spawn a gameobject with the animator and death event on it. |
1936| SetActiveToAllChildren | Active all the child in a transform. |
2037| MoveToTheLastChild | Make the transform to the last transform of the current parent transform. |
2138| SetParentWithoutLosingInfo | Set the transform to another transform without losing it's info. (position, rotation, scale) |
22- | IsSameTribe | Check if the live object is the same tribe. |
23- | GetValues | Get the value for each enum, use to loop through the enum. |
2439| SetEnableAllComponents | Set enable/disable to all component on this transform. |
2540| DestroyAllTypeObjectInScene | Destory all gameobjects in the scene with the type passed in. |
2641| DestroyImmediateAllTypeObjectInScene | Destroy all the gameobject in the scene immediately with the type passed in. |
@@ -31,23 +46,9 @@ All code utility is stored here.
3146| FillSlot | Fill slots with initialize value type by length. |
3247| RemoveEmptySlot | Remove the null value from a list/array. |
3348| RemoveEmptySlotIncludeMissing | Remove all the null value including missing reference in the list/array. |
34- | MergeArrays | Merge multiple arrays into one array. |
35- | MergeArrays2 | Merge two array and return the new array. |
36- | MergeList | Merge the two lists and return the new list. |
37- | CopyBtyeArray | Copy byte array to another byte array memory space. |
38- | EnumSize | Returns the length of an enumerator. |
39- | IsArrayEmpty | Check if the string array is empty. |
40- | ListPopFront | Pop the first value from the list. |
41- | ListPopBack | Pop the last value from the list. |
42- | IsNumberString | Check if the string is a number string. |
4349| DetachChildren | Detach all the child from a transform. |
4450| ForceDetachChildren | Force detach all the child from a transform. |
4551| AttachChildren | Attach all the childs to this transform. |
46- | ToJson | Serialize object to JSON string. |
4752| IsScene | Check current scene's with NAME. |
4853| IsSceneExists | Returns true if the scene 'name' exists and is in your Build settings, false otherwise. |
49- | LastFileIndex | Method to do search directory and get the last file index. |
50- | DeleteAllFilesFromDir | Delete all files in directory. |
51- | BytesToString | Convert byte array to string by charset type. |
52- | StringToBytes | Convert string to byte array by charset type. |
53- | EscapeURL | Simple version of escape url. |
54+ | IsSameTribe | Check if the live object is the same tribe. |
0 commit comments