public void CreateMask() { mask.SetAll(false); // Initialize the ECSInterface's mask from each attached Component var components = gameObject.GetComponents <Component>(); foreach (var component in components) { mask[ComponentIDs.Get(component.GetType())] = true; } }