Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

show private fields in inspecotr unity

// You Can as well do this with "ScrpitableObject"s
public class MyClass : MonoBehaviour { 
	// Make sure that your field type is actually displayable on the inspector
	[SerializeField] var myPrivateField  
{
Comment

Show private fields in Unity Inspector

    //Public variable would show in inspector
    public float Bilal = 5;
    [SerializeField]
    //Private variable would not be shown in Inspector untill[SerializeField] assigned
    private float Iqbal = 5;
Comment

PREVIOUS NEXT
Code Example
Csharp :: from string 
Csharp :: c# handle dbnull value 
Csharp :: check if palindrome recursion in c# 
Csharp :: C# select keyword lambda 
Csharp :: how to get a length of a string in c# 
Csharp :: pyautogui not odwnloading 
Csharp :: c# encrypted 
Csharp :: c# loop through dictionary 
Csharp :: Write text in Word Document at specific location using C# 
Csharp :: how to load file from resources in c# 
Csharp :: string to char array c# 
Csharp :: how to get rid of the slashes in datetime variables c# 
Csharp :: c# random number between 0 and 1 
Csharp :: unity making homing missile 
Csharp :: dataannotations datetime range 
Csharp :: pyqt minimize to tray icon 
Csharp :: variable size in memory c# 
Csharp :: C# Read() and ReadKey() 
Csharp :: check file lock c# 
Csharp :: callling class c# 
Csharp :: compare two strings in c# 
Csharp :: sum of digit of number c# 
Csharp :: longest substring without repeating characters 
Csharp :: c# tuple 
Csharp :: calculator in c# 
Csharp :: preprocessors in c# 
Csharp :: c# linq select specific columns 
Csharp :: how to write web service for API in c# 
Csharp :: how to check type in c# 
Csharp :: lerp by timer unity 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =