Show private variable in inspector and hide public in inspector unity3d
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(){
}
}
Видео Show private variable in inspector and hide public in inspector unity3d канала Muhammad Shahzaib
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(){
}
}
Видео Show private variable in inspector and hide public in inspector unity3d канала Muhammad Shahzaib
Комментарии отсутствуют
Информация о видео
28 сентября 2022 г. 9:12:47
00:01:04
Другие видео канала