-
Notifications
You must be signed in to change notification settings - Fork 0
Introduction
cheese3660 edited this page Feb 18, 2024
·
2 revisions
V-SwiFT is a mod for part switching, it allows you to create variants of your parts using Patch Manager patches
An example patch to add a variant is like the following:
@use "VSwift:*";
:parts #KLSS_water_tank_2v_1x2 {
@include part-switch() {
+Pipes {
+No {
+TransformActivator {
Transforms: [];
}
}
+Yes {
+TransformActivator {
Transforms: [
Pipes,
"Sub Hatch"
];
}
}
}
+Crossbars {
+No {
+TransformActivator {
Transforms: [];
}
}
+Yes {
+TransformActivator {
Transforms: [
"Cross Armature"
];
}
}
}
+Texture {
+Good {
}
+Bad {
+MaterialSwapper {
Swaps: {
KLSS_water_tank_2v_1x2: "addressables://KLSSBad"
};
}
}
}
}
}
For example purposes with the transform activations, this is a part set up in unity for those transform activations, note how a lot of them are disabled by default