This version of Unity is unsupported.

EditorSceneManager.IsPreviewSceneObject

public static bool IsPreviewSceneObject(Object obj);

Parameters

objThe object to check.

Returns

bool True if this object is part of a preview Scene.

Description

Is this object part of a preview Scene?