Google.VersionHandler.FileMetadata.GetBuildTargets C# (CSharp) Method

GetBuildTargets() public method

Get the list of build targets this file is compatible with.
public GetBuildTargets ( ) : HashSet
return HashSet
        public HashSet<BuildTarget> GetBuildTargets() {
            HashSet<BuildTarget> buildTargetSet = new HashSet<BuildTarget>();
            if (targets != null) {
                foreach (string target in targets) {
                    BuildTarget buildTarget;
                    if (BUILD_TARGET_NAME_TO_ENUM.TryGetValue(
                            target, out buildTarget)) {
                        buildTargetSet.Add(buildTarget);
                    } else if (!target.Equals("editor")) {
                        UnityEngine.Debug.LogError(
                            filename + " reference to unknown target " +
                            target + " the version handler may out of date.");
                    }
                }

            }
            return buildTargetSet;
        }