Show private variable in inspector and hide public in inspector unity3d
Channel:
Subscribers:
1,110
Published on ● Video Link: https://www.youtube.com/watch?v=oOulI0VUPUc
ASSALAM o alaikum Code :
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class VariableManager : MonoBehaviour{
[SerializeField] ////////// this will show private variable in inspector
private bool isDead;
[HideInInspector] ////////// this will hide public variable in inspector
public bool isAlive;
void Start(){
}
}
Other Videos By Muhammad Shahzaib
Tags:
unity
unity2d
unity3d
learn unity
unity tutorials
hide public variable in inspector
show private variable in inspector
Show private variable in inspector and hide public in inspector unity3d
Other Statistics
The Inspector Statistics For Muhammad Shahzaib
At present, Muhammad Shahzaib has 21 views spread across 1 video for The Inspector, and less than an hour worth of The Inspector videos were uploaded to his channel. This makes up less than 0.18% of the total overall content on Muhammad Shahzaib's YouTube channel.