text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_suffix|>{ DefaultInit(); } } }<|fim_prefix|>using UnityEditor; using UnityEngine; namespace AssetStoreTools { internal abstract class AssetStoreToolsWindow : EditorWindow { protected abstract string WindowTitle { get; } private void DefaultInit() { ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Previews.Data; using System; using System.Collections.Generic; using UnityEditor; using UnityEngine; using PackageInfo = UnityEditor.PackageManager.PackageInfo; namespace AssetStoreTools { internal class Constants { #if UNITY_EDITOR_OSX public static readonly string ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System.Threading.Tasks; namespace AssetStoreTools.Exporter { internal interface IPackag<|fim_suffix|> Task<PackageExporterResult> Export(); } }<|fim_middle|>eExporter { PackageExporterSettings Settings { get; } <|endoftext|>
fim
CoplayDev/unity-mcp
csharp
namespace AssetStoreTools.Exporter { internal interface IPreviewInjector { void Inject(string temporaryPackagePath); } }<|endoftext|>
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>lace('\\', '/')).ToArray(); foreach (var nestedDirectory in directoryPaths) paths.AddRange(GetAssetPaths(nestedDirectory)); // Add the given directory itself if it is not empty if (filePaths.Length > 0 || directoryPaths.Length > 0) paths...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>namespace AssetStoreTools.Exporter { internal abstract class PackageE<|fim_suffix|> { public string OutputFilename; } }<|fim_middle|>xporterSettings <|endoftext|>
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>portPaths; public string[] Dependencies; public IPreviewGenerator PreviewGenerator; } }<|fim_prefix|>using AssetStoreTools.Previews.Generators; namespace AssetStoreTools.Exporter { <|fim_middle|>internal class DefaultExporterSettings : PackageExporterSettings { public ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>ng (Process process = Process.Start(info)) { process.WaitForExit(); return process.ExitCode; } } protected override void PostExportCleanup() { base.PostExportCleanup(); var tempExportPath = GetTempora...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>namespace AssetStoreTools.Exporter <|fim_suffix|>ic string[] ExportPaths; public bool IncludeDependencies; } }<|fim_middle|>{ internal class LegacyExporterSettings : PackageExporterSettings { publ<|endoftext|>
fim
CoplayDev/unity-mcp
csharp
using AssetStoreTools.Utility; using System; using System.Collections.Generic; using System.IO; using System.Reflection; using System.Threading; using System.Threading.Tasks; namespace AssetStoreTools.Exporter { internal class LegacyPackageExporter : PackageExporterBase { private const string ExportMe...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Previews.Data; usin<|fim_suffix|>ols.Exporter { internal class PackageExporterResult { public bool Success; public string ExportedPath; public PreviewGenerationResult PreviewGenerationResult; public Exception Exception; } }<|fim_middle|>g ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Previews.Data; using System.Collections.Generic; using System.IO; using System.Linq; namespace AssetStoreTools.Exporter { internal class PreviewInjector : IPreviewInjector { private PreviewGenerationResult _result; public PreviewInjector(PreviewGenerationRes...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>ioSampleColor; public Color AudioBackgroundColor; } }<|fim_prefix|>using UnityEngine; namespace AssetStoreTools.Previews.Data { internal class CustomPreviewGenerationSettings : PreviewGenerationSettings { public override GenerationType GenerationType => GenerationType.Custom; ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>uid = 0, FullAssetPath = 1, AssetName = 2, } }<|fim_prefix|>namespace AssetStoreTools.Previews.Data { internal enum FileNameForma<|fim_middle|>t { G<|endoftext|>
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> }<|fim_prefix|>namespace AssetStoreTools.Previews.Data { internal enum GenerationType { Unknown = 0, Native = 1,<|fim_middle|> Custom = 2 }<|endoftext|>
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>namespace AssetStoreTools.Previews.Data { internal<|fim_suffix|>tionType GenerationType => GenerationType.Native; public bool WaitForPreviews; public bool ChunkedPreviewLoading; public int ChunkSize; } }<|fim_middle|> class NativePreviewGenerationSettings : PreviewGeneratio...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System.Collect<|fim_suffix|>reviewMetadata> Previews; public PreviewDatabase() { Previews = new List<PreviewMetadata>(); } } }<|fim_middle|>ions.Generic; namespace AssetStoreTools.Previews.Data { internal class PreviewDatabase { public List<P...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>Format { JPG = 0, PNG = 1 } }<|fim_prefix|>namespace Asse<|fim_middle|>tStoreTools.Previews.Data { internal enum Preview<|endoftext|>
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> public IEnumerable<PreviewMetadata> Previews; public Exception Exception; } }<|fim_prefix|>using System; using System.Collectio<|fim_middle|>ns.Generic; namespace AssetStoreTools.Previews.Data { internal class PreviewGenerationResult { public GenerationType Generatio...
fim
CoplayDev/unity-mcp
csharp
namespace AssetStoreTools.Previews.Data { internal abstract class PreviewGenerationSettings { public abstract GenerationType GenerationType { get; } public string[] InputPaths; public string OutputPath; public PreviewFormat Format; public FileNameFormat PreviewFileNamingF...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System.IO; namespace AssetStoreTools.Previews.Data { internal class PreviewMetadata { public Generatio<|fim_suffix|>ts(Path); } } }<|fim_middle|>nType Type; public string Guid; public string Name; public string Path; public bool Exists() ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>ndex, endIndex); if (sampleChunk.Count() == 0) break; DownsampleMax(sampleChunk, out var aboveBaseline, out var belowBaseline); var yAboveBaseline = SampleToCoordinate(aboveBaseline); var yBelowBaseline = SampleToCoordi...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>namespace AssetStoreTools.Previews.Generators.Custom { internal struct AudioChannelCoordinate { public int X { get; private set; } public int YBaseline { get; private set; } public int YAboveBaseline { get; private <|fim_suffix|> YBaseline = yBaseline; YAbove...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using UnityEngine; namespace AssetStoreTools.Previews.Generators.Custom.Screenshotters { internal interface ISceneScreenshotter { SceneScreenshotterSettings Settings { <|fim_suffix|> } }<|fim_middle|>get; } string Screenshot(string outputPath); string Screenshot(GameObjec...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> Camera.transform.RotateAround(bounds.center, Vector3.left, 60); Camera.transform.RotateAround(bounds.center, Vector3.up, -45); Camera.nearClipPlane = 0.01f; Camera.farClipPlane = 10000; } } }<|fim_prefix|>using UnityEngine; namespace AssetStoreTools.P...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>center.z); Camera.transform.LookAt(bounds.center); Camera.transform.RotateAround(bounds.center, Vector3.left, 65); Camera.transform.RotateAround(bounds.center, Vector3.up, 235); Camera.nearClipPlane = 0.01f; Camera.farClipPlane = 10000; ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>nt) }; return normalizedBounds; } } }<|fim_prefix|>using AssetStoreTools.Previews.Utility; using System; using System.Collections.Generic; using System.IO; using System.Linq; using UnityEngine; namespace AssetStoreTools.Previews.Generators.Custom.Screenshotters { ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Previews.Data; namespace AssetStoreTools.Previews.Generators.Custom.<|fim_suffix|>c int Height; public int Depth; public int NativeWidth; public int NativeHeight; public PreviewFormat Format; } }<|fim_middle|>Screenshotters { internal class ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Previews.Data; using UnityEngine; namespace AssetStoreTools.Previews.Generators.Custom.TypeGenerat<|fim_suffix|>ublic PreviewFormat Format; } }<|fim_middle|>ors { internal class AudioTypeGeneratorSettings : TypeGeneratorSettings { public int Width; public...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> { var channelMaxY = (_texture.height - 1) - i * sectionSize; var channelMinY = _texture.height - (i + 1) * sectionSize; var channel = new AudioChannel(channelMinY, channelMaxY, channelSamples[i]); channels.Add(channel); } ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>(); } }<|fim_prefix|>using AssetStoreTools.Previews.Data; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace AssetSto<|fim_middle|>reTools.Previews.Generators.Custom.TypeGenerators { internal interface ITypePreviewGenerator { TypeGeneratorSettings ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Previews.Data; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using UnityEditor; using UnityEngine; namespace AssetStoreTools.Previews.Generators.Custom.TypeGenerators { internal class MaterialTypePreviewGenerator : TypePreviewGe...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>sInChildren<Renderer>(); foreach (var mr in meshRenderers) { var materialArray = mr.sharedMaterials; for (int i = 0; i < materialArray.Length; i++) { materialArray[i] = new Material(shader) { color = new Color(0.7f...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Previews.Data; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using UnityEditor; using UnityEngine; namespace AssetStoreTools.Previews.Generators.Custom.TypeGenerators { internal class PrefabTypePreviewGenerator : TypePreviewGene...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>nt MaxWidth; public int MaxHeight; public PreviewFormat Format; } }<|fim_prefix|>using AssetStor<|fim_middle|>eTools.Previews.Data; namespace AssetStoreTools.Previews.Generators.Custom.TypeGenerators { internal class TextureTypeGeneratorSettings : TypeGeneratorSettings { ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Previews.Data; using AssetStoreTools.Previews.Utility; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using UnityEditor; using UnityEngine; namespace AssetStoreTools.Previews.Generators.Custom.TypeGenerators { in...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>gFormat; } }<|fim_prefix|>using AssetStoreTools.Previews.Data; namespace AssetStoreTools.Previews.Generators.Custom.TypeGenerators { internal abstract class TypeGeneratorSettings { public string[] Inpu<|fim_middle|>tPaths; public string[] IgnoredGuids; public string Ou...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Previ<|fim_suffix|> foreach (var asset in assets) { if (!AssetDatabase.TryGetGUIDAndLocalFileIdentifier(asset, out var guid, out long _)) continue; if (Settings.IgnoredGuids.Any(x => x == guid)) con...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>elineUtility.GetCurrentPipeline()) { case RenderPipeline.BiRP: return Shader.Find("Unlit/Texture"); case RenderPipeline.URP: return Shader.Find("Universal Render Pipeline/Unlit"); case RenderPipeline.HDRP: ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStor<|fim_suffix|>eenshotter Screenshotter; } }<|fim_middle|>eTools.Previews.Generators.Custom.Screenshotters; namespace AssetStoreTools.Previews.Generators.Custom.TypeGenerators { internal class TypePreviewGeneratorFromSceneSettings : TypeGeneratorSettings { public ISceneS...
fim
CoplayDev/unity-mcp
csharp
using AssetStoreTools.Previews.Data; using AssetStoreTools.Previews.Generators; using AssetStoreTools.Previews.Generators.Custom.Screenshotters; using AssetStoreTools.Previews.Generators.Custom.TypeGenerators; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using UnityEd...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>ction<float> OnProgressChanged; Task<PreviewGenerationResult> Generate(); } }<|fim_prefix|>using AssetStoreTools.Previews.Data; using System; using Syst<|fim_middle|>em.Threading.Tasks; namespace AssetStoreTools.Previews.Generators { internal interface IPreviewGenerator { Pre...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Previews.Data; using AssetStoreTools.Previews.Utility; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Threading.Tasks; using UnityEditor; using UnityEngine; using UnityEngine.Tilemaps; namespace AssetStoreToo...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Previews.Data; using AssetStoreTools.Previews.Services; using System; using System.Threading.Tasks; namespace AssetStoreTools.Previews.Generators { internal abstract class PreviewGeneratorBase : IPreviewGenerator { public PreviewGenerationSettings Settings { get; } ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>ws.Count - 1; i >= 0; i--) { if (database.Previews[i].Exists()) continue; database.Previews.RemoveAt(i); } // Append new previews & Replace existing previews foreach (var preview in previews) ...
fim
CoplayDev/unity-mcp
csharp
using AssetStoreTools.Previews.Data; using System.Collections.Generic; namespace AssetStoreTools.Previews.Services { internal interface ICachingService : IPreviewService { void CacheMetadata(IEnumerable<PreviewMetadata> previews); bool GetCachedMetadata(out PreviewDatabase previewDatabase); ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>namespace AssetStor<|fim_suffix|>ews.Services { public interface IPreviewService { } }<|fim_middle|>eTools.Previ<|endoftext|>
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>vider : ServiceProvider<IPreviewService> { public static PreviewServiceProvider Instance => _instance ?? (_instance = new PreviewServiceProvider()); private static PreviewServiceProvider _instance; private PreviewServiceProvider() { } protected override void RegisterS...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> await Task.Yield(); try { _cachedTexture = new Texture2D(1, 1); _cachedTexture.LoadImage(File.ReadAllBytes(_metadata.Path)); } catch (Exception e) { ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> return _images; } public void Refresh(GenerationType generationType, IEnumerable<PreviewMetadata> previews) { _images.Clear(); _generationType = generationType; foreach (var entry in previews) { if (!entry.Exists()...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Threading.Tasks; using UnityEngine; namespace AssetStoreTools.Previews.UI.Data { internal interface IAssetPre<|fim_suffix|><Texture2D> onSuccess); } }<|fim_middle|>view { UnityEngine.Object Asset { get; } string GetAssetPath(); Task LoadImage...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> GetPreviews(); void Refresh(GenerationType generationType, IEnumerable<PreviewMetadata> previews); } }<|fim_prefix|>using AssetStoreTools.Previews.Data; using System; using System.Collections.Generic; namespace AssetStoreTools.Previews.UI.Data { internal interface IAssetPreviewCollect<|f...
fim
CoplayDev/unity-mcp
csharp
using AssetStoreTools.Previews.Data; using AssetStoreTools.Previews.Generators; using System; using System.Collections.Generic; namespace AssetStoreTools.Previews.UI.Data { internal interface IPreviewGeneratorSettings { event Action OnGenerationTypeChanged; event Action OnGenerationPathsChanged...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>); if (existingPath != null) { Debug.LogWarning($"Path '{path}' is already included with existing path: '{existingPath}'"); return; } // Prevent redundancy for already added paths var redundantPaths = _inputPaths....
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> _label.text = assetNameWithExtension; tooltip = assetPath; } } }<|fim_prefix|>using AssetStoreTools.Previews.UI.Data; using System.Linq; using UnityEditor; using UnityEngine; using UnityEngine.UIElements; namespace AssetStoreTools.Previews.UI.Elements { internal clas...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>t; var visibleRows = new List<int>(); for (int i = 0; i < totalRequiredRows; i++) { var visible = IsRowVisible(i); if (!visible) continue; var rowElement = CreateRow(i); for (int j = ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>ertGenerationTypeName(GenerationType type) { switch (type) { case GenerationType.Custom: return "high resolution"; default: return type.ToString().ToLower(); } } private voi...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Previews.UI.Data; using System; using UnityEngine.UIElements; namespace AssetStoreTools.Previews.UI.Elements { internal class PreviewGenerateButtonElement : VisualElement { // Data private IPreviewGeneratorSettings _settings; // UI private Bu...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Previews.UI.Data; using AssetStoreTools.Utility; using UnityEditor; using UnityEngine.UIElements; namespace AssetStoreTools.Validator.UI.Elements { internal class PreviewGeneratorPathsElement : VisualElement { // Data private IPreviewGeneratorSettings _settin...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>} Add(typeSelectionBox); } private string ConvertGenerationTypeName(GenerationType type) { switch (type) { case GenerationType.Custom: return "High Resolution (experimental)"; default: ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using UnityEngine.UIElements; namespace AssetStoreTools.Previews.UI.Elements { internal class PreviewWindowDescriptionElement : VisualElement { private const string DescriptionFoldoutText = "Generate and inspect asset preview images to be displayed in your package listing page on the Asse...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetSt<|fim_suffix|>ride string WindowTitle => "Preview Generator"; private ICachingService _cachingService; private PreviewListView _previewListView; protected override void Init() { minSize = new Vector2(350, 350); this.SetAntiAliasing(4...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>CreateSettings(); CreateGenerateButton(); CreatePreviewList(); } private void CreateDescription() { _descriptionElement = new PreviewWindowDescriptionElement(); Add(_descriptionElement); } private void CreateSettings...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> return texture; } } }<|fim_prefix|>using UnityEngine; namespace AssetStoreTools.Previews.Utility { internal static class GraphicsUtility { public static Texture2D GetTextureFromCamera(Camera camera, int desiredWidth, int desiredHeight, int desiredDepth) { ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>EncodeToJPG(); case PreviewFormat.PNG: return texture.EncodeToPNG(); default: throw new System.Exception("Undefined format"); } } } }<|fim_prefix|>using AssetStoreTools.Previews.Data; using UnityEditor; using U...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Threading.Tasks; using UnityEditor; using UnityEditor.SceneManagement; using UnityEngine; #if AST_URP_AVAILABLE using UnityEngine.Rendering.Universal; #endif #if AST_HDRP_AVAILABLE using UnityEngine.Rendering; using UnityEngine.Rendering.HighDefinition; #endif namespace AssetSt...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>namespace AssetStoreTools.Previews.Utility { internal enum Render<|fim_suffix|>P = 2, HDRP = 3 } }<|fim_middle|>Pipeline { Unknown = 0, BiRP = 1, UR<|endoftext|>
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> if (currentPipelineAsset is HDRenderPipelineAsset) return RenderPipeline.HDRP; #endif return RenderPipeline.Unknown; } } }<|fim_prefix|>using UnityEngine.Rendering; #if AST_URP_AVAILABLE using UnityEngine.Rendering.Universal; #endif #if AST_HDRP_AVAILABLE usin...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>tion OnIconUpdate; string FormattedSize(); string FormattedModified(); void UpdateData(PackageModel source); void UpdateIcon(Texture2D texture); PackageModel ToModel(); } }<|fim_prefix|>using System; using UnityEngine; using PackageModel = AssetStoreTools.Api...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Collections.Generic; namespace AssetStoreTools.Uploader.Data { internal interface IPack<|fim_suffix|> List<IWorkflow> GetAvailableWorkflows(); void SetActiveWorkflow(IWorkflow workflow); } } <|fim_middle|>ageContent { event Action<IWorkflow> OnAct...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>Type); void Filter(string filter); } }<|fim_prefix|>using System; using System.Collections.Generic; namespace AssetStoreTools.Uploader.Data { internal interface IPackageGroup { string Name { get; } List<IPackage> Packages { get; } event Action<List<IPackage>> ...
fim
CoplayDev/unity-mcp
csharp
using AssetStoreTools.Api; using AssetStoreTools.Api.Responses; using AssetStoreTools.Exporter; using AssetStoreTools.Validator.Data; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace AssetStoreTools.Uploader.Data { internal interface IWorkflow { string Name { get;...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Api; using AssetStoreTools.Ap<|fim_suffix|>ress); void StopUploading(IPackageUploader uploader); AnalyticsResult SendAnalytic(IAssetStoreAnalytic data); Task<RefreshedPackageDataResponse> UpdatePackageData(IPackage package); } }<|fim_middle|>i.Responses; u...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> packageSize: new FileInfo(packagePath).Length, workflow: Name ); var result = _services.SendAnalytic(analytic); } catch (Exception e) { ASDebug.LogError($"Could not send analytics: {e}"); } } p...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> var potentialPackagePath = AssetDatabase.GUIDToAssetPath(lastUploadedGuid); DeserializeFromUploadedDataByPath(potentialPackagePath); } private void DeserializeFromUploadedDataByPath() { if (!string.IsNullOrEmpty(_mainExportPath)) ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>s.Add(packageDependency); } DeserializeFromUploadedData(); } private void DeserializeFromUploadedData() { DeserializeFromUploadedDataByPackageName(); DeserializeFromUploadedDataByPackageGuid(); } private void Deseri...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>ure2D texture) { if (texture == null) return; Icon = texture; OnIconUpdate?.Invoke(); } public string FormattedSize() { var defaultSize = "0.00 MB"; if (float.TryParse(Size, out var sizeBytes)) ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> } private void Deserialize() { var serializedWorkflow = _workflowStateData.GetActiveWorkflow(); var workflow = _workflows.FirstOrDefault(x => x.Name == serializedWorkflow); if (workflow != null) _activeWorkflow = workflow; ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using System; using System.Collections.Generic; using System.Linq; namespace AssetStoreTools.Uploader.Data { internal class PackageGroup : IPackageGroup { private class FilteredPackage <|fim_suffix|> break; case PackageSorting.Date: _filteredPa...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> Name, Category, Date } }<|fim_prefix|>na<|fim_middle|>mespace AssetStoreTools.Uploader.Data { internal enum PackageSorting { <|endoftext|>
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Utility; using Newtonsoft.Json; using System.IO; using UnityEditor; namespace AssetStoreTools.Uploader.Data.Serialization { internal class AssetPath { [JsonProperty("path")] private string _path = string.Empty; [JsonProperty("guid")] private s...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using Newtonsoft.Json; using System.Collections.Generic; namespace AssetStoreTools.Uploader.Data.Serialization { internal class AssetsWorkflowState { [JsonProperty("main_path")] private AssetPath _mainPath; [JsonProperty("special_folders")] private List<AssetPath> ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using Newtonsoft.Json; using System.Collections.Generic; namespace AssetStoreTools.Uploader.Data.Serialization { internal class HybridPackageWorkflowState { [JsonProperty("package_name")] private string _packageName; [<|fim_suffix|>dependencies) _dependenci...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>kageWorkflowState { [JsonProperty("package_path")] private AssetPath _packagePath; public UnityPackageWorkflowState() { _packagePath = new AssetPath(); } public string GetPackagePath() { return _packagePath?.ToString(); ...
fim
CoplayDev/unity-mcp
csharp
using Newtonsoft.Json; using Newtonsoft.Json.Serialization; namespace AssetStoreTools.Uploader.Data.Serialization { internal class WorkflowStateData { [JsonProperty("package_id")] private string _packageId; [JsonProperty("active_workflow")] private string _activeWorkflow; ...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|> RootGuid = LocalPackageGuid, RootPath = LocalPackagePath, ProjectPath = LocalProjectPath }; var uploader = new UnityPackageUploader(uploaderSettings); return uploader; } protected override void Serialize() ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Api; using AssetStoreTools.Api.Responses; using AssetStoreTools.Uploader.Services.Analytics; using AssetStoreTools.Uploader.Services.Analytics.Data; using AssetStoreTools.Uploader.Services.Api; using System; using System.Threading.Tasks; using UnityEngine.Analytics; namespace AssetS...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Uploader.Services.Analytics.Data; using UnityEditor; using Unit<|fim_suffix|>nalytic.EventName, maxEventPerHour: AnalyticsConstants.MaxEventsPerHour, maxItems: AnalyticsConstants.MaxNumberOfElements, vendorKey: AnalyticsConstants.Vendor...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>tName: AnalyticsConstants.AuthenticationAnalytics.EventName, vendorKey: AnalyticsConstants.VendorKey, version: AnalyticsConstants.AuthenticationAnalytics.EventVersion, maxEventsPerHour: AnalyticsConstants.MaxEventsPerHour, maxNumberOfElements: AnalyticsConstants.MaxNumberOfElements)] #endi...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>turn error == null; } #endif } }<|fim_prefix|>using System; #if UNITY_2023_2_OR_NEWER using UnityEngine.Analytics; #endif namespace AssetStoreTools.Uploader.Services.Analytics.Data { internal abstract class BaseAnalytic : IAssetStoreAnalytic { [Serializable] publi<|fim...
fim
CoplayDev/unity-mcp
csharp
#if UNITY_2023_2_OR_NEWER using UnityEngine.Analytics; #endif namespace AssetStoreTools.Uploader.Services.Analytics.Data { internal interface IAssetStoreAnalytic #if UNITY_2023_2_OR_NEWER : IAnalytic #endif { string EventName { get; } int EventVersion { get; } IAssetStoreAnalyti...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>namespace AssetSt<|fim_suffix|>#if UNITY_2023_2_OR_NEWER : UnityEngine.Analytics.IAnalytic.IData #endif { } }<|fim_middle|>oreTools.Uploader.Services.Analytics.Data { interface IAssetStoreAnalyticData <|endoftext|>
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Api; using AssetStoreTools.Validator.Data; using System; #if UNITY_2023_2_OR_NEWER using UnityEngine.Analytics; #endif using AnalyticsConstants = AssetStoreTools.Constants.Uploader.Analytics; namespace AssetStoreTools.Uploader.Services.Analytics.Data { #if UNITY_2023_2_OR_NEWER ...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Validator.Data; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using System.Collections.Generic; using System.Reflection; namespace AssetStoreTools.Uploader.Services.Analytics.Data { internal class ValidationResultsSerializer { private class ValidationRe...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Uploader<|fim_suffix|> internal interface IAnalyticsService : IUploaderService { AnalyticsResult Send(IAssetStoreAnalytic analytic); } }<|fim_middle|>.Services.Analytics.Data; using UnityEngine.Analytics; namespace AssetStoreTools.Uploader.Services.Analytics {<|e...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Api; using AssetStoreTools.Api.Models; using AssetStoreTools.Api.Responses; using AssetStoreTools.Uploader.Services.Analytics; using AssetStoreTools.Uploader.Services.Analytics.Data; using AssetStoreTools.Utility; using System; using System.Threading.Tasks; using UnityEditor; namesp...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Api.Models; us<|fim_suffix|> AssetStoreTools.Uploader.Services.Api { internal interface IAuthenticationService : IUploaderService { User User { get; } Task<AuthenticationResponse> AuthenticateWithCredentials(string email, string password); Task<Authent...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>adedVersions(IPackage package, int timeoutMs); void StopDownloading(); } }<|fim_prefix|>using AssetStoreTools.Api.Responses; using AssetStoreTools.Uploader.Data; using System.Threading.Tasks; namespace AssetStoreTools.Uploader.Services.Api { internal interface IPackageDownloadingService :...
fim
CoplayDev/unity-mcp
csharp
<|fim_suffix|>ploadinng(); } }<|fim_prefix|>using AssetStoreTools.Api; using AssetStoreTools.Api.Responses; using System; using System.Threading.Tasks; namespace AssetStoreTools.Uploader.Services.Api<|fim_middle|> { internal interface IPackageUploadingService : IUploaderService { bool IsUploading {...
fim
CoplayDev/unity-mcp
csharp
<|fim_prefix|>using AssetStoreTools.Api; using AssetStoreTools.Api.Responses; using AssetStoreTools.Uploader.Data; using System.Threading; using System.Threading.Tasks; namespace AssetStoreTools.Uploader.Services.Api { internal class PackageDownload<|fim_suffix|>ackage) { var response = await _...
fim
CoplayDev/unity-mcp
csharp