Hide Inspector Unity Code Example


Example 1: 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;
}

Example 2: unity hide in inspector


[HideInInspector]
public float myVar;

Comments

Popular posts from this blog

530 Valid Hostname Is Expected When Setting Up IIS 10 For Multiple Sites

C Perror Example

Converting A String To Int In Groovy