Gain precise control over your GameObjects' positions, rotations, and scales with these convenient Transform extensions. Reset transforms, modify individual axes, and streamline object placement with ease.
https://github.com/swzwij/Code-Crate/releases/tag/Extensions-Pack-v1.0.0
Importing a Unity Package:
Download the Package: Locate the Unity package you want to import. This could be from the Unity Asset Store or a developer's website. Download the .unitypackage
file.
Import into Unity: There are two ways to import the package into your Unity project:
.unitypackage
file directly from your file explorer and drop it into the Assets folder within the project window..unitypackage
file.Import Options (Optional):
A window will appear showing the contents of the package. By default, all items are selected for import. You can uncheck any files or folders you don't want to import into your project.
Click Import: Once you're happy with the selection, click Import to begin importing the package files into your project.
Method | Description |
---|---|
DestroyChildren |
Destroys all child GameObjects of the specified Transform. |
ResetTransform |
Resets the position, rotation, and scale of the specified Transform to their default values. |
SetXPosition |
Sets the X position of a Transform. |
SetYPosition |
Sets the Y position of a Transform. |
SetZPosition |
Sets the Z position of a Transform. |
SetXRotation |
Sets the X rotation of a Transform in degrees. |
SetYRotation |
Sets the Y rotation of a Transform in degrees. |
SetZRotation |
Sets the Z rotation of a Transform in degrees. |
SetXScale |
Sets the X scale of a Transform. |
SetYScale |
Sets the Y scale of a Transform. |
SetZScale |
Sets the Z scale of a Transform. |