Feel
4.3
The best way to improve your game's feel and make it extra juicy
|
Add this class to a gameobject, and it'll enable/disable it based on platform context, using conditional defintions to do so More...
Public Types | |
enum | ExecutionTimes { ExecutionTimes.Awake, ExecutionTimes.Start, ExecutionTimes.OnEnable } |
the possible times at which this script can run More... | |
enum | PlatformActions { PlatformActions.DoNothing, PlatformActions.Disable } |
Public Attributes | |
ExecutionTimes | ExecutionTime = ExecutionTimes.Awake |
the selected execution time More... | |
bool | DebugToTheConsole = false |
whether or not this should output a debug line in the console More... | |
PlatformActions | UNITY_STANDALONE_WIN = PlatformActions.DoNothing |
whether or not this gameobject should be active on Windows More... | |
PlatformActions | UNITY_STANDALONE_OSX = PlatformActions.DoNothing |
whether or not this gameobject should be active on OSX More... | |
PlatformActions | UNITY_STANDALONE_LINUX = PlatformActions.DoNothing |
whether or not this gameobject should be active on Linux More... | |
PlatformActions | UNITY_STANDALONE = PlatformActions.DoNothing |
whether or not this gameobject should be active on standalone More... | |
PlatformActions | UNITY_IOS = PlatformActions.DoNothing |
whether or not this gameobject should be active on iOS More... | |
PlatformActions | UNITY_IPHONE = PlatformActions.DoNothing |
whether or not this gameobject should be active on iPhone More... | |
PlatformActions | UNITY_ANDROID = PlatformActions.DoNothing |
whether or not this gameobject should be active on Android More... | |
PlatformActions | UNITY_TIZEN = PlatformActions.DoNothing |
whether or not this gameobject should be active on Tizen More... | |
PlatformActions | UNITY_WII = PlatformActions.DoNothing |
whether or not this gameobject should be active on Wii More... | |
PlatformActions | UNITY_PS4 = PlatformActions.DoNothing |
whether or not this gameobject should be active on PS4 More... | |
PlatformActions | UNITY_XBOXONE = PlatformActions.DoNothing |
whether or not this gameobject should be active on XBoxOne More... | |
PlatformActions | UNITY_WEBGL = PlatformActions.DoNothing |
whether or not this gameobject should be active on WebGL More... | |
PlatformActions | UNITY_LUMIN = PlatformActions.DoNothing |
whether or not this gameobject should be active on Lumin More... | |
PlatformActions | UNITY_TVOS = PlatformActions.DoNothing |
whether or not this gameobject should be active on TVOS More... | |
PlatformActions | UNITY_WSA = PlatformActions.DoNothing |
whether or not this gameobject should be active on WSA More... | |
PlatformActions | UNITY_FACEBOOK = PlatformActions.DoNothing |
whether or not this gameobject should be active on Facebook More... | |
PlatformActions | UNITY_ADS = PlatformActions.DoNothing |
whether or not this gameobject should be active on Ads More... | |
PlatformActions | UNITY_ANALYTICS = PlatformActions.DoNothing |
whether or not this gameobject should be active on Analytics More... | |
PlatformActions | UNITY_EDITOR = PlatformActions.DoNothing |
whether or not this gameobject should be active in Editor More... | |
PlatformActions | UNITY_EDITOR_WIN = PlatformActions.DoNothing |
whether or not this gameobject should be active in Editor on Windows More... | |
PlatformActions | UNITY_EDITOR_OSX = PlatformActions.DoNothing |
whether or not this gameobject should be active in Editor on OSX More... | |
PlatformActions | UNITY_EDITOR_LINUX = PlatformActions.DoNothing |
whether or not this gameobject should be active in Editor on Linux More... | |
Protected Member Functions | |
virtual void | OnEnable () |
On Enable, processes the state if needed More... | |
virtual void | Awake () |
On Awake, processes the state if needed More... | |
virtual void | Start () |
On Start, processes the state if needed More... | |
virtual void | Process () |
Enables or disables the object based on current platform More... | |
virtual void | DisableIfNeeded (PlatformActions platform, string platformName) |
Disables the object if needed, and outputs a debug log if requested More... | |
Add this class to a gameobject, and it'll enable/disable it based on platform context, using conditional defintions to do so
|
protectedvirtual |
On Awake, processes the state if needed
|
protectedvirtual |
Disables the object if needed, and outputs a debug log if requested
platform | |
platformName |
|
protectedvirtual |
On Enable, processes the state if needed
|
protectedvirtual |
Enables or disables the object based on current platform
|
protectedvirtual |
On Start, processes the state if needed
bool MoreMountains.Tools.MMPlatformActivation.DebugToTheConsole = false |
whether or not this should output a debug line in the console
ExecutionTimes MoreMountains.Tools.MMPlatformActivation.ExecutionTime = ExecutionTimes.Awake |
the selected execution time
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_ADS = PlatformActions.DoNothing |
whether or not this gameobject should be active on Ads
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_ANALYTICS = PlatformActions.DoNothing |
whether or not this gameobject should be active on Analytics
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_ANDROID = PlatformActions.DoNothing |
whether or not this gameobject should be active on Android
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_EDITOR = PlatformActions.DoNothing |
whether or not this gameobject should be active in Editor
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_EDITOR_LINUX = PlatformActions.DoNothing |
whether or not this gameobject should be active in Editor on Linux
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_EDITOR_OSX = PlatformActions.DoNothing |
whether or not this gameobject should be active in Editor on OSX
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_EDITOR_WIN = PlatformActions.DoNothing |
whether or not this gameobject should be active in Editor on Windows
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_FACEBOOK = PlatformActions.DoNothing |
whether or not this gameobject should be active on Facebook
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_IOS = PlatformActions.DoNothing |
whether or not this gameobject should be active on iOS
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_IPHONE = PlatformActions.DoNothing |
whether or not this gameobject should be active on iPhone
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_LUMIN = PlatformActions.DoNothing |
whether or not this gameobject should be active on Lumin
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_PS4 = PlatformActions.DoNothing |
whether or not this gameobject should be active on PS4
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_STANDALONE = PlatformActions.DoNothing |
whether or not this gameobject should be active on standalone
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_STANDALONE_LINUX = PlatformActions.DoNothing |
whether or not this gameobject should be active on Linux
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_STANDALONE_OSX = PlatformActions.DoNothing |
whether or not this gameobject should be active on OSX
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_STANDALONE_WIN = PlatformActions.DoNothing |
whether or not this gameobject should be active on Windows
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_TIZEN = PlatformActions.DoNothing |
whether or not this gameobject should be active on Tizen
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_TVOS = PlatformActions.DoNothing |
whether or not this gameobject should be active on TVOS
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_WEBGL = PlatformActions.DoNothing |
whether or not this gameobject should be active on WebGL
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_WII = PlatformActions.DoNothing |
whether or not this gameobject should be active on Wii
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_WSA = PlatformActions.DoNothing |
whether or not this gameobject should be active on WSA
PlatformActions MoreMountains.Tools.MMPlatformActivation.UNITY_XBOXONE = PlatformActions.DoNothing |
whether or not this gameobject should be active on XBoxOne