Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PresetType

Stores a type to which a Preset can be applied.
Read time 1 minuteLast updated 9 days ago

Definition

public struct PresetType : IEquatable<PresetType>

Remarks

Only classes that inherit from UnityEngine.Object are represented by a PresetType.
This structure is used instead of Type because some native C++ types in Unity are not exposed to managed C# for optimization reasons.

Methods

Method

Description

GetManagedTypeNameRetrieves a human readable namespace and the name of the target class, regardless of whether it's a managed C# class or a native C++ class.
IsValidChecks whether a PresetType corresponds with a valid native or managed class.
IsValidDefaultChecks whether a PresetType can be used within the DefaultPreset system.