Unity Assembly Browser | Assembly References Folder | C# Object Class - Unity C# Scripting 04
Notes for You::
0:03:47 Understand .NET Assemblies: • Unity Assembly Browser | Assembly Ref...
- Assembly is a file that is automatically generated by the compiler upon successful compilation of every .NET application. It is generated only once and updated on each compilation.
2 Types of Assembly:
1. DLL (Dynamic Link Library) :
- is a collection of namespaces
- DLL files are not self executable
- To execute codes in DLL files we need to take help of some executable file
- Example DLLs: mscorlib.dll, UnityEngine.dll
2. EXE (Executable) : (Final output)
- EXE files are self executable
Example Code:
using UnityEngine;
public class FirstScript : MonoBehaviour
{
void Start()
{
print("Hello Unity");
Debug.Log("Hello Unity");
}
}
0:06:13 Understand Assembly Browser Window in Unity: • Unity Assembly Browser | Assembly Ref...
Assembly Browser/Object Browser:
- de-compiles the managed code and displays it in your Mono Develop IDE / Visual studio.
- is an useful tool to see what is there in assemblies like DLL files.
-can be used to find where is what.
Step 1:
- Right click on any word in the script
Step 2:
- Select Go to Declaration option
Ex:
UnityEngine.dll:
- contains collection of namespaces; they are
UnityEngine
UnityEngine.Audio
UnityEngine.Rendering
UnityEngine.Sprites
UnityEngine.UI
UnityEngine.SceneManagement
etc.
mscorlib.dll :
- contains collection of namespaces; they are
System
System.Collections
System.Collections.Generic
etc.
Note: mscorlib.dll is from C#.NET + UnityEngine.dll is from Unity = Project
0:11:35 How to get Help about any Unity script and Understand it: • Unity Assembly Browser | Assembly Ref...
Step 1.
- Goto Unity IDE
Step 2:
- Goto Help Menu
Step 3:
- Select "Scripting Reference" option
Step 4:
- Type the Class name in the search box in the browser and Hit enter
Step 5:
- Use Ctrl + f to find a specific property or a method
0:14:55 Understand Assembly References Folder: • Unity Assembly Browser | Assembly Ref...
- It contains collection of DLL files referred by the project
From C#.NET:
System
System.Core
System.Xml
System.Xml.Linq
From Unity:
UnityEditor.dll
UnityEngine.dll
UnityEngine.UI.dll
UnityEngine.iOS.dll
0:17:18 Understand the Ultimate base class Object in Unity: • Unity Assembly Browser | Assembly Ref...
object class:
- Is a mother of all classes in C#
- Is inherited by every class in the .NET framework
- Provides low level services to the derived class
- Is the root of type hierarchy
- Is the ultimate base class
0:20:23 Understand the Abstraction concept in C#: • Unity Assembly Browser | Assembly Ref...
Abstraction:
- Hiding unnecessary information from the user or
- Providing only necessary information to the user
Ex:
Syntax of Debug.Log():
public static void Log(object message);
public static void Log(object message, Object context);
Syntax of print():
public static void print(object message);
Note:
print() method implicitly calls Debug.Log (), hides the context from us.
So that we need not to worry about the context.
=========================================
Follow the Link For Next Video:
• C# using Keyword | C# Comments | C# A...
Follow the Link For Previous Video:
• Unity Debug.Log() vs print() | C# Obj...
=========================================
Unity C# Scripting Tutorials Playlist:-
• Unity C# Scripting Tutorials
=========================================
Watch My Other Useful Tutorials:-
Unity Scripting API - Introduction Tutorials:-
• Unity Scripting API - Intro Tutorials
Unity Scripting API - MonoBehaviour Tutorials:-
• Unity Scripting API - MonoBehaviour T...
Unity Scripting API - Time Tutorials:-
• Unity Scripting API - Time Tutorials
Unity Scripting API - Transform Tutorials:-
• Unity Scripting API - Transform Tutor...
Unity Scripting API - Input Tutorials:-
• Unity Scripting API - Input Tutorials
Unity Google VR Tutorials:-
• Unity Google VR Tutorials
=========================================
Subscribe to our YouTube channel:-
/ chidrestechtutorials
Join as Member of our YouTube channel:-
https://www.youtube.com/chidrestechtu...
Become our Patron:-
/ chidrestechtutorials
Visit our Website:-
https://www.chidrestechtutorials.com
Download our Notes from Instamojo:-
https://chidrestechtutorials.myinstam...
=========================================
Follow Us:-
LinkedIn:-
/ chidrestechtutorials
Facebook:-
/ chidrestechtutorials
=========================================
Hash Tags:-
#ChidresTechTutorials #UnityCSharpScripting #UnityScripting #Unity