static public void AddFeature(BlueprintFeature feature) { var basicFeatSelection = ResourcesLibrary.TryGetBlueprint <BlueprintFeatureSelection>("247a4068296e8be42890143f451b4b45"); try { ref var allFeatures = ref basicFeatSelection.AllFeatures; if (allFeatures.Contains(feature)) { return; } var l = allFeatures.Length; Array.Resize(ref allFeatures, l + 1); allFeatures[l] = feature; Main.DebugLog($"{feature.name} of type {feature.GetType()} added to the class list"); }