Загрузка...

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
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки