@zilibobi/forge-vfx 2.3.0 → 2.4.0
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.
- package/README.md +1 -1
- package/out/ForgeVFX.rbxm +0 -0
- package/out/index.d.ts +12 -5
- package/package.json +1 -1
package/README.md
CHANGED
package/out/ForgeVFX.rbxm
CHANGED
|
Binary file
|
package/out/index.d.ts
CHANGED
|
@@ -6,6 +6,11 @@ export interface EmitResult {
|
|
|
6
6
|
* Promise that resolves when the effect has finished playing
|
|
7
7
|
*/
|
|
8
8
|
Finished: Promise<void>;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Clear all emitted effects
|
|
12
|
+
*/
|
|
13
|
+
Clear(): void;
|
|
9
14
|
}
|
|
10
15
|
|
|
11
16
|
/**
|
|
@@ -94,16 +99,18 @@ export function recolor(
|
|
|
94
99
|
): void;
|
|
95
100
|
|
|
96
101
|
/**
|
|
97
|
-
* Cache attributes for a VFX instance and its descendants.
|
|
102
|
+
* Cache attributes for a VFX instance and optionally its descendants.
|
|
98
103
|
* Strips attributes from instances and stores them in memory for faster access.
|
|
99
104
|
* Only works on the client and for instances inside ReplicatedStorage.
|
|
100
|
-
* @param obj The instance whose
|
|
105
|
+
* @param obj The instance whose attributes to cache
|
|
106
|
+
* @param shallow If true, only cache the instance itself (skip descendants)
|
|
101
107
|
*/
|
|
102
|
-
export function cacheAttributes(obj: Instance): void;
|
|
108
|
+
export function cacheAttributes(obj: Instance, shallow: boolean): void;
|
|
103
109
|
|
|
104
110
|
/**
|
|
105
111
|
* Restore previously cached attributes back onto instances.
|
|
106
112
|
* Only works on the client.
|
|
107
|
-
* @param obj The instance whose
|
|
113
|
+
* @param obj The instance whose attributes to restore
|
|
114
|
+
* @param shallow If true, only restore the instance itself (skip descendants)
|
|
108
115
|
*/
|
|
109
|
-
export function restoreAttributes(obj: Instance): void;
|
|
116
|
+
export function restoreAttributes(obj: Instance, shallow?: boolean): void;
|
package/package.json
CHANGED