|
static RaycastHit2D | Perform2DRaycast (Vector2 origin, Vector2 direction, float length, LayerMask layerMask) |
| Performs a Physics2D.Raycast on Triggers in the scene. More...
|
|
static RaycastHit2D | Perform2DRaycast (Vector2 origin, Vector2 direction, float length) |
| Performs a Physics2D.Raycast on Triggers in the scene. More...
|
|
static int | Perform2DRaycasts (ref RaycastHit2D[] hits, Vector2 origin, Vector2 direction, float length, LayerMask layerMask) |
|
static int | GetSceneIndexFromGameObject (GameObject _gameObject) |
| Gets the buld index of the scene that a given GameObject is in. More...
|
|
static string | GetSceneNameFromGameObject (GameObject _gameObject) |
| Gets the name of the scene that a given GameObject is in. More...
|
|
static LocalVariables | GetLocalVariablesOfGameObject (GameObject _gameObject) |
| Gets the LocalVariables component that is in the same scene as a given GameObject. More...
|
|
static SceneSettings | GetSceneSettingsOfGameObject (GameObject _gameObject) |
| Gets the SceneSettings component that is in the same scene as a given GameObject. More...
|
|
static bool | CanUseJson () |
| Checks if Json serialization is supported by the current version of Unity. More...
|
|
static bool | PutInFolder (GameObject ob, string folderName) |
| Places a supplied GameObject in a "folder" scene object, as generated by the Scene Manager. More...
|
|
static string | GetCurrentSceneName () |
| Gets the name of the active scene, if multiple scenes are being edited. More...
|
|
static void | NewScene () |
|
static bool | OpenScene (string sceneName) |
|
static void | SaveScene () |
|
static bool | SaveSceneIfUserWants () |
|
static bool | ObjectIsInActiveScene (string gameObjectName, bool persistentIsValid=true) |
| Checks if a suppplied GameObject is present within the active scene. More...
|
|
static T | AddComponentToGameObject< T > (GameObject gameObject) |
| Adds a component to a GameObject, which can be a prefab or a scene-based object More...
|
|
static T | AddConstantIDToGameObject< T > (GameObject gameObject, bool forcePrefab=false) |
| Adds a ConstantID component to a GameObject, which can be a prefab or a scene-based object More...
|
|
static void | AssignIDsToTranslatable (ITranslatable translatable, int[] lineIDs, bool isInScene, bool isMonoBehaviour) |
|
static bool | IsPrefabFile (Object _target) |
| Checks if a given object is part of an original prefab (as opposed to an instance of one). More...
|
|
static bool | IsPrefabEditing (Object _target) |
|
static GameObject | GetPrefabStageRoot () |
|
static void | CustomSetDirty (Object _target, bool force=false) |
|
static string | GetCurrentSceneFilepath () |
|
static bool | ShouldAssignPrefabConstantID (GameObject gameObject) |
|
static bool | ObjectIsInActiveScene (GameObject gameObject, bool persistentIsValid=true) |
| Checks if a suppplied GameObject is present within the active scene. The GameObject must be in the Hierarchy at runtime. More...
|
|
static T | GetKickStarterComponent< T > () |
| Finds the correct instance of a component required by the KickStarter script. More...
|
|
static T | GetOwnSceneInstance< T > (GameObject gameObject) |
| Gets a Behaviour that is in the same scene as a given GameObject. More...
|
|
static T | GetSceneInstance< T > (UnityEngine.SceneManagement.Scene scene) |
|
This is a class that contains commonly-used functions that vary depending on which version of Unity is being used.