Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AssetBundle.Contains

Contains(name: string): bool;
bool Contains(string name);
def Contains(name as string) as bool

Description

Check if an AssetBundle contains a specific object.

Returns true if an object referred to by name is contained in the AssetBundle, false otherwise.