Manual     Reference     Scripting  
  
Scripting > Runtime Classes > AssetBundle   
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Enumerations
  • History
  • Index
  • AssetBundle
  • All Members
  • Variables
  • mainAsset
  • Functions
  • Contains
  • Load
  • LoadAll
  • LoadAsync
  • Unload
  • Inherited Variables
  • hideFlags
  • name
  • Inherited Functions
  • GetInstanceID
  • Inherited Class Functions
  • Destroy
  • DestroyImmediate
  • DontDestroyOnLoad
  • FindObjectOfType
  • FindObjectsOfType
  • Instantiate
  • operator !=
  • operator ==
  • operator bool

AssetBundle.Contains  

function Contains (name : string) : 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.