Table of Contents | ||
---|---|---|
|
...
Upgrading .unitypackage files is a little more difficult. This quote from the Unity docs explains it:
"For the cleanest possible upgrade, it should be considered to remove the old package contents first, as some scripts, effects or prefabs might have become deprecated or unneeded and Unity packages don't have a way of deleting (unneeded) files (but make sure to have a security copy of the old version available)."
The easiest way I've found is to use the approach the SVN docs recommend for vendor branch upgrades.
...
Provides functionality for full screen image
...
Allows for control of the call ordering of all MonoBehaviour messages sent from Unity.
Variable Name | Purpose | Value Range |
---|---|---|
Initial Priority | The ordering in which this script will be called compared to other VHBehaviours. A lower number entails a higher priority. i.e. priority 0 behaviours get processed before priority 10 behaviours | int |
VHBehaviourManager
The control system that allows for correct processing order of VHBehaviours. This object MUST be present in order for VHBehaviours to work
VHWayPointNavigator
Variable Name | Purpose | Value Range |
---|---|---|
Speed | Linear movement rate at which you move between waypoints | float |
Turn Towards Target | Turn to face your next waypoint target. | True/False |
Ignore Height | Only move to next waypoint along the x/z axes | True/False |
Immediately Start Pathing | Start Pathing: As soon as the scene starts, start moving | True/False |
Loop Type | Action to take upon reaching the last way point of the path | Loop, Ping Pong, Stop |
Pather | The gameobject that will do the moving | GameObject |
WayPoints | The list of transforms that will be used as waypoints for the pather to move along | GameObject |
...
Add a new command callback for an arbitrary command
...
Code Block | ||
---|---|---|
| ||
m_Console.AddCommandCallback("some_command", new DebugConsole.ConsoleCallback(HandleConsoleMessage)); void HandleConsoleMessage(string commandEntered, DebugConsole console){ if { if (commandEntered.IndexOf("some_command") != -1) // Do Something }} |
To use the console, at run-time hit the ~ key. Type '?' and hit enter to see a list of commands. If you used the code above in your script, you should see "some_command" in the list. Note, you can pass additional arguments with these commands.
Send arguments with a command while typing in the console
Infocode |
---|
vhmsg someMessage |
VHMsgManager
Subscribe to a certain type of message
...