30 lines
935 B
C#
30 lines
935 B
C#
using XCEngine;
|
|
|
|
namespace Gameplay
|
|
{
|
|
public sealed class RenderPipelineApiProbeAsset : RenderPipelineAsset
|
|
{
|
|
}
|
|
|
|
public sealed class RenderPipelineApiProbe : MonoBehaviour
|
|
{
|
|
public bool InitialTypeWasNull;
|
|
public bool SelectionRoundTripSucceeded;
|
|
public string SelectedPipelineTypeName = string.Empty;
|
|
|
|
public void Start()
|
|
{
|
|
InitialTypeWasNull = GraphicsSettings.renderPipelineAssetType == null;
|
|
|
|
GraphicsSettings.renderPipelineAssetType =
|
|
typeof(RenderPipelineApiProbeAsset);
|
|
System.Type selectedType = GraphicsSettings.renderPipelineAssetType;
|
|
SelectionRoundTripSucceeded =
|
|
selectedType == typeof(RenderPipelineApiProbeAsset);
|
|
SelectedPipelineTypeName = selectedType != null
|
|
? selectedType.FullName ?? string.Empty
|
|
: string.Empty;
|
|
}
|
|
}
|
|
}
|