Skip to content

Latest commit

 

History

History
189 lines (116 loc) · 7.71 KB

README.md

File metadata and controls

189 lines (116 loc) · 7.71 KB

PashmakCore

Unity 2019.4.7+ License: MIT

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 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.
  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.
  2. Download .unitypackage file from 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

image

2D sprites and 3D objects:

CU_ColorFader

Unity UI system:

CU_ColorFader_2

CU_MonoEvent_Collider

image

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

MonoEvent_Collider

CU_MonoEvent_Mouse

image

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

MonoEvent_Mouse

Snapable objects

image

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

CU_Transform_SnapObj2

CU_GameObject_Instantiate

image

The CU_GameObject_Instantiate component is used to spawn game objects.

CU_GameObject_Instantiate

CU_GameObject_Destroy

image

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

CU_GameObject_Destroy

CU_Input_GetKey

image

The CU_Input_GetKey component is used to detect input keys.

CU_Input_GetKey

CU_Input_GetMouseButton

image

The CU_Input_GetMouseButton component is used to detect mouse inputs.

CU_Input_GetMouseButton

CU_Transform_Sync

image

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

CU_Transform_Sync

CU_Transform_LerpPositions

image

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

CU_Transform_LerpPositions

CU_Transform_Dragable

image

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

CU_Transform_Dragable

CU_Transform_Position_SyncToMouse

image

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

CU_Transform_Position_SyncToMouse

CU_Transform_Translate

image

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

CU_Transform_Translate

CU_Transform_LerpRotation

image

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

CU_Transform_LerpRotation

CU_Transform_LookAt

image

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

CU_Transform_LookAt