Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Exists

Returns true if a property bag exists for the given type.
Read time 1 minuteLast updated 9 days ago

Definition

  • Type: Method
  • Namespace: Unity.Properties
  • Assembly: UnityEngine.PropertiesModule

Exists<T>()

Returns true if a property bag exists for the given type.
public static bool Exists<TContainer>()

Returns

Type

Description

bool
true
if there is a property bag for the given type; otherwise,
false
.

Exists(Type)

Returns true if a property bag exists for the given type.
public static bool Exists(Type type)

Parameters

type

The type to check for a property bag

Returns

Type

Description

bool
true
if there is a property bag for the given type; otherwise,
false
.