Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Static Public Member Functions | Public Attributes | Properties | List of all members
AssetBase Class Reference
Inheritance diagram for AssetBase:

Static Public Member Functions

static GUISkin GetGUISkin (string skinName)
 Returns a reference to the GUI Skin with the given name. More...
 
static GameObject GetPrefab (string prefabName)
 Returns a reference to the prefab with the given name, so it can be instantiated. More...
 
static T GetPrefab< T > (string prefabName)
 Returns a reference to the prefab with the given name, so it can be instantiated. More...
 
static UnityEngine.Sprite GetSprite (string spriteName)
 
static Texture2D GetTexture (string textureName)
 Returns a reference to the texture with the given name. More...
 

Public Attributes

GUISkin[] guiSkins
 
GameObject[] prefabs
 
GameObject[] prefabsAutoSpawn
 
RDTechTree rdTechTree
 
UnityEngine.Sprite[] sprites
 
Texture2D[] textures
 

Properties

static RDTechTree RnDTechTree [get]
 RnDTechTree provides methods to access the nodes on the RnD tech tree, even if no instance of it exists More...
 

Member Function Documentation

static GUISkin AssetBase.GetGUISkin ( string  skinName)
inlinestatic

Returns a reference to the GUI Skin with the given name.

Parameters
textureName
Returns
static GameObject AssetBase.GetPrefab ( string  prefabName)
inlinestatic

Returns a reference to the prefab with the given name, so it can be instantiated.

Parameters
prefabName
Returns
static T AssetBase.GetPrefab< T > ( string  prefabName)
inlinestatic

Returns a reference to the prefab with the given name, so it can be instantiated.

Parameters
prefabName
Returns
Type Constraints
T :MonoBehaviour 
static UnityEngine.Sprite AssetBase.GetSprite ( string  spriteName)
inlinestatic
static Texture2D AssetBase.GetTexture ( string  textureName)
inlinestatic

Returns a reference to the texture with the given name.

Parameters
spriteName
Returns

Member Data Documentation

GUISkin [] AssetBase.guiSkins
GameObject [] AssetBase.prefabs
GameObject [] AssetBase.prefabsAutoSpawn
RDTechTree AssetBase.rdTechTree
UnityEngine.Sprite [] AssetBase.sprites
Texture2D [] AssetBase.textures

Property Documentation

RDTechTree AssetBase.RnDTechTree
staticget

RnDTechTree provides methods to access the nodes on the RnD tech tree, even if no instance of it exists


The documentation for this class was generated from the following file: