Answers for "unity hide in inspector"

C#
4

how ot make a variable public without showing in the inspector

public float notHidden; // Displayed

[HideInInspector] // Hides var below
public float hidden;
Posted by: Guest on August-05-2020
0

unity hide in inspector

using UnityEngine;

public class Example : MonoBehaviour
{
    // Make the variable p not show up in the inspector
    // but be serialized.
    [HideInInspector]
    int p = 5;
}
Posted by: Guest on October-25-2020
1

unity hide in inspector

[HideInInspector]
public float myVar;
Posted by: Guest on October-25-2020

Code answers related to "unity hide in inspector"

C# Answers by Framework

Browse Popular Code Answers by Language