Table of Contents

Class NDMFPreview

Namespace
nadena.dev.ndmf.preview

General utilities for controlling the NDMF preview system.

public static class NDMFPreview
Inheritance
NDMFPreview
Inherited Members

Properties

DisablePreviewDepth

When this counter is non-zero, all NDMF preview systems will be disabled. This is intended for transiently disabling previews and will not be preserved across domain reloads or play mode transitions.

public static int DisablePreviewDepth { get; set; }

Property Value

int

Methods

GetOriginalObjectForProxy(GameObject)

If the given game object is a preview proxy object, returns the original object that the proxy was created for.

public static GameObject? GetOriginalObjectForProxy(GameObject proxy)

Parameters

proxy GameObject

The suspected proxy object

Returns

GameObject?

The original object, or null if the given object is not a proxy