Skip to content

Commit

Permalink
code upgraders
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Jan 3, 2024
1 parent 8695598 commit abc8762
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Runtime/Scripts/GLTFSceneExporter.cs
Expand Up @@ -95,7 +95,7 @@ public override bool BeforeMaterialExport(GLTFSceneExporter exporter, GLTFRoot g
#pragma warning restore CS0618 // Type or member is obsolete
}

[Obsolete("Use ExportContext instead")]
[Obsolete("Use UnityGLTF.ExportContext instead. (UnityUpgradable) -> UnityGLTF.ExportContext")]
public class ExportOptions: ExportContext
{
public ExportOptions(): base() { }
Expand Down
15 changes: 15 additions & 0 deletions Runtime/Scripts/Plugins/Core/GltfPlugin.cs
Expand Up @@ -43,4 +43,19 @@ public abstract class GLTFPlugin: ScriptableObject
[Obsolete("Use a custom Editor for this ScriptableObject instead if you want to override how it looks in the Inspector.")]
public virtual void OnGUI() { }
}

[Obsolete("Use UnityGLTF.Plugins.GLTFPlugin instead. (UnityUpgradable) -> UnityGLTF.Plugins.GLTFPlugin")]
public abstract class GltfPlugin: ScriptableObject {}

[Obsolete("Use UnityGLTF.Plugins.GLTFImportPlugin instead. (UnityUpgradable) -> UnityGLTF.Plugins.GLTFImportPlugin")]
public abstract class GltfImportPlugin: GltfPlugin {}

[Obsolete("Use UnityGLTF.Plugins.GLTFExportPlugin instead. (UnityUpgradable) -> UnityGLTF.Plugins.GLTFExportPlugin")]
public abstract class GltfExportPlugin: GltfPlugin {}

[Obsolete("Use UnityGLTF.Plugins.GLTFImportPluginContext instead. (UnityUpgradable) -> UnityGLTF.Plugins.GLTFImportPluginContext")]
public abstract class GltfImportPluginContext {}

[Obsolete("Use UnityGLTF.Plugins.GLTFExportPluginContext instead. (UnityUpgradable) -> UnityGLTF.Plugins.GLTFExportPluginContext")]
public abstract class GltfExportPluginContext {}
}

0 comments on commit abc8762

Please sign in to comment.