https://github.com/mohammadroohian/PashmakCore
A number of useful scripts.
https://github.com/mohammadroohian/PashmakCore
component plugin script unity unity3d
Last synced: 9 months ago
JSON representation
A number of useful scripts.
- Host: GitHub
- URL: https://github.com/mohammadroohian/PashmakCore
- Owner: mohammadroohian
- License: mit
- Created: 2021-03-12T07:19:52.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-14T07:09:41.000Z (over 4 years ago)
- Last Synced: 2024-08-02T05:13:20.931Z (over 1 year ago)
- Topics: component, plugin, script, unity, unity3d
- Language: C#
- Homepage:
- Size: 2.41 MB
- Stars: 16
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PashmakCore
[](https://unity3d.com/get-unity/download)
[](https://github.com/mohammadroohian/PashmakCore/blob/master/LICENSE)
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](https://github.com/dbrizov/NaughtyAttributes)
* TextMesh Pro 2.0.1
* Post Processing 2.3.0
## Installation
* First install `TextMesh Pro` and `Post Processing` packages in Unity through Package Manager.`MenuItem - Window - Package Manager`
* Add `TextMesh Pro` sample scenes.
### Perform one of the following methods:
#### zip file (The simple way)
1. Download a `source code` zip from [releases](https://github.com/mohammadroohian/PashmakCore/releases).
2. Extract it.
3. Copy the items in the `Assets` folder into the `Assets` folder of your project. (Click replace files if necessary)
#### unitypackage file
1. Install [NaughtyAttributes](https://github.com/dbrizov/NaughtyAttributes#installation).
2. Download `.unitypackage` file from [releases](https://github.com/mohammadroohian/PashmakCore/releases).
3. 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.
