Game object extensions  
 More...
 | 
| static T  | newComponent | 
|   | Gets the specified component on the object, or adds it and returns it if there isn't already one  More...
  | 
|   | 
◆ MMFindOrCreateObjectOfType< T >()
  
  
      
        
          | static T bool createdNew MoreMountains.Tools.GameObjectExtensions.MMFindOrCreateObjectOfType< T >  | 
          ( | 
          this GameObject @  | 
          this,  | 
         
        
           | 
           | 
          string  | 
          newObjectName,  | 
         
        
           | 
           | 
          Transform  | 
          parent,  | 
         
        
           | 
           | 
          bool  | 
          forceNewCreation = false  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
◆ MMGetComponentAroundOrAdd< T >()
  
  
      
        
          | static T MoreMountains.Tools.GameObjectExtensions.MMGetComponentAroundOrAdd< T >  | 
          ( | 
          this GameObject @  | 
          this | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Grabs a component on the object, or on its children objects, or on a parent, or adds it to the object if none were found 
- Parameters
 - 
  
  
 
- Template Parameters
 - 
  
  
 
- Returns
 
 
 
◆ MMGetComponentNoAlloc()
  
  
      
        
          | static Component MoreMountains.Tools.GameObjectExtensions.MMGetComponentNoAlloc  | 
          ( | 
          this GameObject @  | 
          this,  | 
         
        
           | 
           | 
          System.Type  | 
          componentType  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Grabs a component without allocating memory uselessly 
- Parameters
 - 
  
  
 
- Returns
 
 
 
◆ MMGetComponentNoAlloc< T >()
Grabs a component without allocating memory uselessly 
- Template Parameters
 - 
  
  
 
- Parameters
 - 
  
  
 
- Returns
 
 
 
◆ MMGetOrAddComponent< T >()
  
  
      
        
          | static T MoreMountains.Tools.GameObjectExtensions.MMGetOrAddComponent< T >  | 
          ( | 
          this GameObject @  | 
          this | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Gets the specified component on the object, or adds it and returns it if there isn't already one 
- Parameters
 - 
  
  
 
- Template Parameters
 - 
  
  
 
- Returns
 
 
 
◆ newComponent
  
  
      
        
          | T MoreMountains.Tools.GameObjectExtensions.newComponent | 
         
       
   | 
  
static   | 
  
 
Gets the specified component on the object, or adds it and returns it if there isn't already one 
- Parameters
 - 
  
  
 
- Template Parameters
 - 
  
  
 
- Returns
 
 
 
The documentation for this class was generated from the following file: