New answers tagged scene
1
Based on Phillip and DMGregory's answer and comment, I found this solution works very well:
Create an Tag Component such as:
#if UNITY_EDITOR
using UnityEngine;
namespace AwSim.Tags
{
[AddComponentMenu("Tags/Decorative")]
[DisallowMultipleComponent]
public class Decorative : MonoBehaviour {}
}
#endif
Attach it to the Prefabs or ...
2
Use marker-components.
The penalty of having a marker-component with no fields and no methods on a lot of objects will in most cases be negligible. But when you are in a situation where every byte matters (and still don't want to use Entities), then you could make that marker component commit suicide on awake:
class Decorative : MonoBehaviour {
private ...
Top 50 recent answers are included