PashmakCore
A number of useful scripts.
Install / Use
/learn @mohammadroohian/PashmakCoreREADME
PashmakCore
A number of useful scripts for every things in unity! Work with sprites, user interface, physics and more!
Each script written to perform a specific action. We call them component unit (CU). Some parts are included in this pack:
- Application
- Audio
- Camera
- Conditions
- GameObject
- Input
- Rigidbody & Rigidbody2D
- SceneManager
- Screen
- ScreenCapture
- Sprite
- StoreData
- Time
- Timer
- Transform
- UI
- MonoEvents
- Color fader - sprite renderer - renderer - UI
and so on.
This code snippet can be used for 2D and 3D projects. Each component has a simple task that can be combined with other components to perform more complex tasks.
Why should you use PashmakCore?
Use these pieces of code instead of writing code for some small tasks. Use them to build prototypes and speed things up. Put them together and do more complex tasks without the need for coding.
Requirements
- Unity 2019.4.7 or later versions.
- NaughtyAttributes
- TextMesh Pro 2.0.1
- Post Processing 2.3.0
Installation
- First install
TextMesh ProandPost Processingpackages in Unity through Package Manager.MenuItem - Window - Package Manager - Add
TextMesh Prosample scenes.
Perform one of the following methods:
zip file (The simple way)
- Download a
source codezip from releases. - Extract it.
- Copy the items in the
Assetsfolder into theAssetsfolder of your project. (Click replace files if necessary)
unitypackage file
- Install NaughtyAttributes.
- Download
.unitypackagefile from releases. - Import it into your project.
Overview
To learn more about how these components work, check out the sample scenes. The following are a number of practical cases.
CU_ColorFader

2D sprites and 3D objects:

Unity UI system:

CU_MonoEvent_Collider

The CU_MonoEvent_Collider component is used to detect all types of collisions and triggers in 2D and 3D.

CU_MonoEvent_Mouse

The CU_MonoEvent_Mouse component is used to detect mouse events.
Enter - Exit - Down - Up - Over - Drag

Snapable objects

The CU_Transform_SnapObj component and CU_Transform_Dragable are used to snap one object to a specific point.

CU_GameObject_Instantiate

The CU_GameObject_Instantiate component is used to spawn game objects.

CU_GameObject_Destroy

Ther CU_GameObject_Destroy component is used to delete game objects or delete the children of a specific game object from the scene.

CU_Input_GetKey

The CU_Input_GetKey component is used to detect input keys.

CU_Input_GetMouseButton

The CU_Input_GetMouseButton component is used to detect mouse inputs.

CU_Transform_Sync

The CU_Transform_Sync component is used to synchronize the transform properties (position, rotation, scale) of an object game.

CU_Transform_LerpPositions

The CU_Transform_LerpPositions component is used to move an agent between multiple points. This component also has a loop capability.

CU_Transform_Dragable

The CU_Transform_Dragable component is used to enable the ability to drag objects.

CU_Transform_Position_SyncToMouse

The CU_Transform_Position_SyncToMouse is used to synchronize the position of an object game with mouse.

CU_Transform_Translate

The CU_Transform_Translate component is used to move an object game on the screen.

CU_Transform_LerpRotation

The CU_Transform_LerpRotation component is used to change the angle of a game object from one angle to another smoothly.

CU_Transform_LookAt

The CU_Transform_LookAt component is used to look from one object to another.

