Class Settings
Stores the current state of the Repro Project Wizard.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.ReproProjectWizard.Editor.Wizard
Assembly: solution.dll
Syntax
public class Settings : ScriptableObject
Examples
Adds an asset to the list of items to include in the new project.
using Unity.ReproProjectWizard.Editor.Wizard;
using UnityEditor;
using UnityEngine;
using UnityEngine.Windows;
namespace Editor
{
public static class ExampleScript
{
private static Settings ReturnSettings()
{
return File.Exists("Assets/ReproProjectWizard/ReproProjectSettings.asset")
? AssetDatabase.LoadAssetAtPath<Settings>("Assets/ReproProjectWizard/ReproProjectSettings.asset")
: ScriptableObject.CreateInstance<Settings>();
}
public static void AddAssetToSettings()
{
Settings exampleSettingsFile = ReturnSettings();
exampleSettingsFile.itemsToCopy.Add(new ReproItem()
{
assetType = ProjectAssetType.Prefab,
assetPath = "Assets/Prefabs/Example.prefab",
AssetObject = AssetDatabase.LoadAssetAtPath<UnityEngine.Object>("Assets/Prefabs/Example.prefab")
});
}
}
}
Fields
Name | Description |
---|---|
commonItems | The list of assets to include in all new repro projects. |
createZipOfProject | Whether a zip of the repro project will be created alongside the repro project. |
externalPackageItems | The list of external package items to include in the new project. |
itemsToCopy | The list of assets to include in the new project. |
openProjectAfterExport | Whether to open the repro project after exporting it. |
projectName | The name to give the new project. |
projectPath | The path to the new project. |
textureScaleIndex | The current index of the texture scaling setting. |