Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chandradhargowtham/UnityCodeSnippets

Repository files navigation

UnityCodeSnippets

Collection of simple yet useful c# code snippets used in Unity

Contents: (Not updated regularly)

  1. Color Concepts -Snippets: 1. Change Button Text and Image Color. 2. Toggle Button for Image Color Change

  2. GameObject 1. Game Object Properties 2. Set gameObject.tag in script and retrieval of objects using tag 3. GetChild(i)

  3. SetActive -Snippets: 1. Toggle Text and Toggle ONOFF

  4. Text -Snippets: 1. Text UI

  5. Toggle -Snippets: 1. Text Manipulation by Toggle 2. Text output depending on Toggle checked or unchecked

  6. Methods,Invoke and Coroutines -Concepts and Snippets: 1. CoRoutines 2. Invoke

  7. Misc -Concepts and Snippets: 1. Convert String to Int in Unity 2. Create and print Dictionary Values

  8. Materials -Concepts: 1. Shader properties

  9. Important Utilities and Concepts -Concepts and Snippets: 1. Unity- Create and Import Scriptable Object from Excel (Credit - Mikito Yoshiya) 2. Unity- Save Ingame Data 3. Serializable and Json Utility(Tip)

  10. Events -Concepts and Snippets: 1. Unity - Events and Callbacks

  11. Functionalities -Snippets 1. Unity- Change Plane Texture Dynamically in C# Script 2. Unity- Rotate characters with mouse 3. Unity- Rotate GameObject on touch 4. Unity- Team Selection Cycle Code

About

Collection of simple yet useful c# code snippets used in unity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages