You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
627 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class HideInPrefabExample : MonoBehaviour {
[Header ("Drag Me into scene to show hidden properties.")]
[HideInPrefab]
public float HiddenFloat = 5; //Hidden in prefab inspector
public float ShownFloat = 6; //Not hidden in prefab inspector
[HideInInspector]
public float AlwaysHiddenFloat = 7; //Always hidden (Unity's default implementation)
[HideInPrefab]
public GameObject HiddenGameObject; //Hidden in Prefab inspector
public GameObject ShownGameObject; //NotHidden in Prefab inspector
}