Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

SabreCSG generates warnings #252

Open
AzureBerylBlue opened this issue Feb 26, 2021 · 1 comment
Open

SabreCSG generates warnings #252

AzureBerylBlue opened this issue Feb 26, 2021 · 1 comment

Comments

@AzureBerylBlue
Copy link
Contributor

Assets\SabreCSG\Scripts\Extensions\EditorHelper.cs(47,49): warning CS0618: 'SceneView.OnSceneFunc' is obsolete: 'OnSceneFunc() has been deprecated. Use System.Action instead.'
Assets\SabreCSG\Scripts\CSGModel.cs(1045,9): warning CS0618: 'PrefabUtility.GetPrefabObject(Object)' is obsolete: 'Use GetPrefabInstanceHandle for Prefab instances. Handles for Prefab Assets has been discontinued.'
Assets\SabreCSG\Scripts\Extensions\EditorHelper.cs(49,32): warning CS0618: 'SceneView.onSceneGUIDelegate' is obsolete: 'onSceneGUIDelegate has been deprecated. Use duringSceneGui instead.'

@AzureBerylBlue
Copy link
Contributor Author

AzureBerylBlue commented Mar 14, 2021

/// <summary>
/// DO NOT USE - only here for compatibility with old third party plugins!
/// </summary>
public static bool SceneViewHasDelegate(SceneView.OnSceneFunc targetDelegate)
{
return HasDelegate(SceneView.onSceneGUIDelegate, targetDelegate);
}

Workaround: These lines can be safely deleted to make some of the warnings go away.
This plus pull request #253 make a clean warning free project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant