Swap lets you change the class name of an instance and copy, cut. and paste attributes, properties, and tags.
Swap’s class converter leverages superclass, property, and pre-defined conversion data in tandem with your conversion history to dynamically predict what classes you are searching for with extreme accuracy. To increase your typing speed, Swap lets you tap the SPACE or TAB key on your keyboard to fill entire words within class names; See it in action below.
You can even control whether deprecated classes show up in suggestions by changing the “Deprecated Objects Shown” setting in Studio settings, making Swap feel it’s part of Studio.
When you’re ready to convert a class, you can do it any way you’d like. The helpful guide below shows you what each option does.
-
Insert and Include Descendants: Clones selected objects and their descendants and converts the clones of the selected objects to their target class.
-
Insert and Exclude Descendants: Clones selected objects and converts them to the target class.
-
Replace and Include Descendants: Converts selected objects to the target class and keeps their descendants.
-
Replace and Exclude Descendants: Converts selected objects to the target class and removes their descendants.
Once you’re done converting a class, you’ll notice that attributes and tags all carry over to the new class. You’ll even see property values that you set as the class you’re converting change to the new class; This is especially helpful when dealing with welds and other constraints.
When you just need to move some attributes or tags around, there’s a way to do that too. Every action (copy, cut, and paste) has a shortcut so you can do even faster with just the press of a few keys.
API Permissions
-
Script Injection: Is required if the class you are converting to is a script or has a descendant that is a script. This is also required if you want to change a script’s source when pasting properties.
-
HTTP Requests: are required for initial setup. After, you do not need to keep them enabled but doing so may result in more errors over time.