Scripts/Controllers

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
m
m
 
(31 intermediate revisions by 19 users not shown)
Line 1: Line 1:
+
{{Scripts Tabbed Navigation}}
{| style="width:100%; margin:auto; background:transparent;" cellspacing="0" cellpadding="0" valign="top" border="0" |
+
| style="padding:0 .3em; background-color:#CEE0F2; font-size:90%; border:solid 2px #A3B1BF; text-align:center" width="8%" | {{{1|[[Scripts/General| General]]}}}
+
+
| style="border-bottom:2px solid #A3B1BF" width="1%" |  
+
+
| style="padding:0.3em; font-size:90%; background-color:#CEE0F2; border:solid 2px #A3B1BF; text-align:center" width="8%" | {{{2|[[Scripts/Controllers| Controllers]]}}}
+
+
| style="border-bottom:2px solid #A3B1BF" width="1%" |  
+
+
| style="padding:0 .3em; background-color:#CEE0F2; font-size:90%; border:solid 2px #A3B1BF; text-align:center" width="8%" | {{{2|[[Scripts/GUI|GUI]]}}}
+
+
| style="border-bottom:2px solid #A3B1BF" width="1%" |  
+
+
| style="padding:0.3em; font-size:90%; background-color:#CEE0F2; border:solid 2px #A3B1BF; text-align:center" width="8%" | {{{2|[[Scripts/Effects| Effects]]}}}
+
+
| style="border-bottom:2px solid #A3B1BF" width="1%" |  
+
+
| style="padding:0.3em; font-size:90%; background-color:#CEE0F2; border:solid 2px #A3B1BF; text-align:center" width="8%" | {{{2|[[Scripts/Physics| Physics / Simulation]]}}}
+
+
| style="border-bottom:2px solid #A3B1BF" width="1%" |  
+
+
| style="padding:0 .3em; background-color:#CEE0F2; font-size:90%; border:solid 2px #A3B1BF; text-align:center" width="8%" | {{{2|[[Scripts/Networking| Networking]]}}}
+
+
| style="border-bottom:2px solid #A3B1BF" width="1%" |  
+
+
| style="padding:0.3em; font-size:90%; background-color:#CEE0F2; border:solid 2px #A3B1BF; text-align:center" width="8%" | {{{2|[[Scripts/Sound| Sound]]}}}
+
+
| style="border-bottom:2px solid #A3B1BF" width="1%" |  
+
+
| style="padding:0 .3em; background-color:#CEE0F2; font-size:90%; border:solid 2px #A3B1BF; text-align:center" width="8%" | {{{2|[[Scripts/Development| Development]]}}}
+
|-
+
{|cellspacing="10px" valign="top" style="background:white; border-left:2px solid #A3B1BF; border-right:2px solid #A3B1BF"
+
|-
+
| valign="top"|
+
  
{| align="right"
+
==CharacterController==
  | __TOC__
+
  |}
+
  
 +
*[[CharacterMotor]] - C# port of the official standard asset script (Unity 3/4.x).
 +
*[[FPSWalkerEnhanced]] - Enhanced version of the official FPSWalker standard asset script with many added features.
 +
*[[SimpleTankController]] - Emulates simple tank like movement.
 +
*[[ClickCharacterController]] - Moves the character to the cursor position on click.
 +
*[[TapMoveDragLook]] - Mobile touch-based character controller. Emulates Epic's Epic Citadel demo.
 +
*[[Wander]] - Creates a wandering behaviour for AI characters.
  
== Camera Controls ==  
+
==Weapon==
 +
 
 +
*[[ShootingWeaponScript]] - Allows a weapon to spawn bullets, supports scatter, gravity and rate of fire.
 +
*[[AimDownSights]] - An expansion script for the FPSWalker that smoothly animates aiming down the sights of an attached gun model.
 +
 
 +
==Physics==
 +
 
 +
*[[SixDPhysicsController]] - A Rigidbody based first-person six degrees of freedom (6DoF) controller.
 +
*[[RigidbodyFPSWalker]] - A Rigidbody based first-person controller that is affected by physics.
 +
*[[GravityFPSWalker]] - An FPSWalker iteration with custom gravity.
 +
*[[VariableSpeedFPSwalker]] - A first-person controller with different speeds for walking, strafing and back-pedaling.
 +
*[[PhysicsFPSWalker]] - Another physics-based first-person controller.
 +
*[[ShipControls]] - 2D spaceship controls like those found in Overwhelmed Arena.
 +
*[[VWheelCollider]] - Basic replacement for the built-in WheelCollider.
 +
 
 +
==Animation==
 +
 
 +
*[[AniMate]] - Script to quickly and easily create animations/tweens of almost any value including eased, rigidbody and rotation animation.
 +
*[[AnimationStepSync]] - Repositions object after animation ends (useful for positioning via animations).
 +
*[http://www.pixelplacement.com/iTween/ iTween] - Focusing on the established solutions and frameworks of projects such as TweenLite, Tweener, and other tweening systems, iTween is a battle-tested solution for streamlining production in the Unity3D environment.
 +
*[[iTweenX]] - Usefull variables to use with iTween if you always forget the keywords.
 +
*[[MoveObject]] - Basic functions for when you just need to move something from point A to point B, or rotate by a given number of degrees, without anything fancy.
 +
*[[Tween]] - An adaptation of the Tweener class of FLASH for unity.
 +
 
 +
==Camera==  
 
*[[AspectRatioEnforcer]] - Force the screen to a desired aspect ratio, using letterboxing/pillarboxing as necessary.
 
*[[AspectRatioEnforcer]] - Force the screen to a desired aspect ratio, using letterboxing/pillarboxing as necessary.
 
*[[CameraGradientBackground]] - A simple two-color gradient background for your camera.
 
*[[CameraGradientBackground]] - A simple two-color gradient background for your camera.
 +
*[[Camera Target Swap]]- Highly modified look at script , with GUI button to swap target objects to look at .
 
*[[CarSmoothFollow]] - A smooth car follow script that dampens height, rotation and velocity based distance.
 
*[[CarSmoothFollow]] - A smooth car follow script that dampens height, rotation and velocity based distance.
 
*[[CrossFade]] - Smoothly fade the view from one camera to another.
 
*[[CrossFade]] - Smoothly fade the view from one camera to another.
 
*[[CrossFadePro]] - Smoothly fade the view from one camera to another, with motion in both cameras.
 
*[[CrossFadePro]] - Smoothly fade the view from one camera to another, with motion in both cameras.
 +
*[[DetectTouchMovement]] - Facilitate a bit scripting the pinching and turning with 2 fingers
 
*[[DreamWipe]] - Fade the view from one camera to another, with the wavy distortion seen with dream sequences or flashbacks
 
*[[DreamWipe]] - Fade the view from one camera to another, with the wavy distortion seen with dream sequences or flashbacks
 
*[[FadeInOut]] - Fade a full-screen image in or out, good for fade in outs.
 
*[[FadeInOut]] - Fade a full-screen image in or out, good for fade in outs.
 
*[[Floating Origin]] - Translates everything so that the camera stays at the origin to resolve spatial jittering in large scale games.
 
*[[Floating Origin]] - Translates everything so that the camera stays at the origin to resolve spatial jittering in large scale games.
 +
*[[FlyCam Extended]] - Improved version of FlyThrough (below) with cursor capturing, smoothed movement, climbing/dropping, and fast and slow move speed modifiers.
 
*[[FlyThrough]] - A basic fly through camera movement like the one within the editor.
 
*[[FlyThrough]] - A basic fly through camera movement like the one within the editor.
 +
*[[FollowTrackingCamera]] - A pretty basic C# camera that allows you to turn on/of zoom or rotation as you desire.
 
*[[Headbobber]] - Make an object bob up and down smoothly when you're pressing one or both of the horizontal/vertical axes.
 
*[[Headbobber]] - Make an object bob up and down smoothly when you're pressing one or both of the horizontal/vertical axes.
 
*[[KeyboardOrbit]] - Tweaked version of the MouseOrbit script that allows keyboard control (or whatever is bound to the "Horizontal" and "Vertical" axes)
 
*[[KeyboardOrbit]] - Tweaked version of the MouseOrbit script that allows keyboard control (or whatever is bound to the "Horizontal" and "Vertical" axes)
Line 58: Line 56:
 
*[[MouseLookPlus2]] - A modification of MouseLookPlus to allow for moving and strafing the camera.
 
*[[MouseLookPlus2]] - A modification of MouseLookPlus to allow for moving and strafing the camera.
 
*[[MouseOrbitImproved]] - Improved version of the original MouseOrbit script. Zooms with the mousewheel and uses linecast to make sure that object isn't behind anything.
 
*[[MouseOrbitImproved]] - Improved version of the original MouseOrbit script. Zooms with the mousewheel and uses linecast to make sure that object isn't behind anything.
 +
*[[MouseOrbitInfiteRotateZoom]] - No limits on rotating about target. Zooms with the mousewheel (can be limited).
 
*[[MouseOrbitZoom]] - A camera that combines orbiting zooming and panning, initially set up to mimic the 3dsMax camera controls.
 
*[[MouseOrbitZoom]] - A camera that combines orbiting zooming and panning, initially set up to mimic the 3dsMax camera controls.
 +
*[[MouseTorque]] - A mouse look implementation using torque
 
*[[MultipleCameraSwitcher]] - A script that allows you to switch between different cameras in your scene. Supports four camera views that can be toggled with a button.
 
*[[MultipleCameraSwitcher]] - A script that allows you to switch between different cameras in your scene. Supports four camera views that can be toggled with a button.
 +
*[[MultipleCameraSwitcher2]] - Switch between arbitrary numbers of cameras.
 
*[[OffsetVanishingPoint]] - Sets the vanishing point of a camera to an arbitrary position.
 
*[[OffsetVanishingPoint]] - Sets the vanishing point of a camera to an arbitrary position.
 
*[[RectangleWipe]] - Make an animated rectangular zooming screen wipe from one camera to another.
 
*[[RectangleWipe]] - Make an animated rectangular zooming screen wipe from one camera to another.
Line 67: Line 68:
 
*[[SmoothFollowWithCameraBumper]] - Based on SmoothFollow2, this features a bumper mechanism to prevent the camera from going through  
 
*[[SmoothFollowWithCameraBumper]] - Based on SmoothFollow2, this features a bumper mechanism to prevent the camera from going through  
 
*[[SmoothFollowAdvanced]] - Based on SmoothFollow2 & SmoothFollowWithCameraBumper, this features a design capability and controller input.
 
*[[SmoothFollowAdvanced]] - Based on SmoothFollow2 & SmoothFollowWithCameraBumper, this features a design capability and controller input.
 +
*[[SmoothLookAt CS]] - CSharp version of SmoothLookAt JS script.
 
*[[SmoothLookFrame]] - Looks at a target but tries to keep another target within the camera's view.
 
*[[SmoothLookFrame]] - Looks at a target but tries to keep another target within the camera's view.
 
*[[SmoothMouseLook]] - Modified version of MouseLook.cs script included in Unity's Standard Assets. It moves the camera with an easing effect.
 
*[[SmoothMouseLook]] - Modified version of MouseLook.cs script included in Unity's Standard Assets. It moves the camera with an easing effect.
Line 72: Line 74:
 
*[[StaticBackground]] - Use a static image as the background to your 3d scene.
 
*[[StaticBackground]] - Use a static image as the background to your 3d scene.
 
*[[TouchLook]] - Use the iOS touches to rotate the camera
 
*[[TouchLook]] - Use the iOS touches to rotate the camera
 +
*[[TrackballCamera]] - a quick and dirty non-gimbal locking camera
  
== Character Controller Scripts ==
+
==Miscellaneous==  
  
*[http://arongranberg.com/unity/a-pathfinding A* Pathfinding] - An A* pathfinding-system for out-of-the-box pathfinding in Unity.
+
*[[SeekSteer]] - Used to make an object loosely follow a path of waypoints.
*[[AimDownSights]] - An expansion script for the FPSWalker that smoothly animates aiming down the sights of an attached gun model.
+
*[[WalkOnSphere]] - Have a first person camera properly orient to walk on the surface of a sphere
 +
*[[WaypointMaster]] - Implementation of A* algorithm, based on waypoints.
 
*[[Biped Parts Finder]] - Editor script for search simplification of parts of a biped body.
 
*[[Biped Parts Finder]] - Editor script for search simplification of parts of a biped body.
*[[Click To Move]] - Moves an object towards the mouse position when the Left Mouse Button is clicked
+
*[[Click To Move]] - Moves an object when the left mouse button is clicked or towards the mouse if the button is held down
*[[ClickCharacterController]] - Uses Locomotion to move a character to the point the Left Mouse button is clicked
+
 
*[[DoubleJumpController]] - A hack for the 2d gameplay tutorial character controller script, it allows the character to make a second jump when jumping, or make a little jump when falling.
 
*[[DoubleJumpController]] - A hack for the 2d gameplay tutorial character controller script, it allows the character to make a second jump when jumping, or make a little jump when falling.
 
*[[Finite State Machine]] - A simple Finite State Machine framework to control NPCs.
 
*[[Finite State Machine]] - A simple Finite State Machine framework to control NPCs.
 +
*[[FootstepHandler]] - Simple script for making footsteps.
 
*[[Force2D]] - Constrain a GameObject to move in two dimensions.
 
*[[Force2D]] - Constrain a GameObject to move in two dimensions.
*[[FPSWalkerEnhanced]] - Adds features to standard FPSWalker, such as sliding down slopes, falling damage, and walk/run modes
 
 
*[[Gesture_Recognizer]] - A math based gesture recognition script.
 
*[[Gesture_Recognizer]] - A math based gesture recognition script.
 
*[[GridMove]] - A controller for character movement typically seen in old-school 2D RPGs and strategy games.
 
*[[GridMove]] - A controller for character movement typically seen in old-school 2D RPGs and strategy games.
*[[HeadLookController]] - A component that can be used to make a character look towards a specified point in space, smoothly turning towards it with for example the eyes, head, upper body, or whatever is specified.
+
*[[HeadLookController]] - Makes a character smoothly turn towards a specified point in space.
 
*[[JCar]] - A car using wheel colliders.
 
*[[JCar]] - A car using wheel colliders.
 
*[[KeyCombo]] - A class that can be used to detect fighting-game style combos.
 
*[[KeyCombo]] - A class that can be used to detect fighting-game style combos.
 
*[[LookAtMouse]] - Cause an object to rotate toward the cursor, along the y axis.
 
*[[LookAtMouse]] - Cause an object to rotate toward the cursor, along the y axis.
*[[Pathfinding]] - ['''Old'''] A pathfinding-system using raycasting to avoid obstacles
+
*[[Pathfinding]] - ['''Old'''] A pathfinding-system using ray-casting to avoid obstacles.
*[[PhysicsFPSWalker]] - Another physics based fps walker script.
+
*[[RigidbodyFPSWalker]] - An physics based FPS walker that works with rigidbodies and thus is affected by forces, joints or other rigidbodies
+
*[[SeekSteer]] - A class that can be used to move an object to follow a loose path of waypoints
+
*[[ShipControls]] - Place this script on a [http://www.otee.dk/Documentation/ScriptReference/Rigidbody.html RigidBody] for 2D spaceship controls like [http://otee.dk/gallery/udwc/OverWhelmedArena.html OverWhelmed Arena].
+
*[[SimpleTankController]] - A script that emulates simple tank movement.
+
*[[Tap to Move Drag to Look iPhone]] - Tap ground or use joystick to move, drag to look around. Emulates Epic's Epic Citadel demo.
+
*[[VariableSpeedFPSwalker]] - An FPS walker script having different speeds for walking forward, strafing, and back-pedalling.
+
*[[WaypointMaster]] - Implementation of A* algorithm, based on waypoints.
+
 
+
== Animation Controllers ==
+
 
+
*[[AniMate]] - Script to quickly and easily create animations/tweens of almost any value and including eased, rigidbody and rotation animation.
+
*[[AnimationStepSync]] - Repositions object after animation ends - useful for positioning via animations.
+
*[http://www.pixelplacement.com/iTween/ iTween] - Focusing on the established solutions and frameworks of projects such as TweenLite, Tweener, and other tweening systems, iTween is a battle-tested solution for streamlining production in the Unity3D environment.
+
*[[MoveObject]] - Basic functions for when you just need to move something from point A to point B, or rotate by a given number of degrees, without anything fancy.
+
*[[Tween]] - An adaptation of the Tweener class of FLASH for unity.
+
|}
+
<div style="border:2px solid #A3B1BF;padding:.5em 1em 1em 1em; border-top:none; border-bottom:2px solid #A3B1BF;  border-right:2px solid #A3B1BF; background-color:#ffffff; color:#000;">
+
 
+
</div>
+

Latest revision as of 22:39, 5 November 2018

Scripts   General   Editor   Controllers   UI   Effects   Physics/Simulation   Networking   Audio   Utility

Contents

[edit] CharacterController

  • CharacterMotor - C# port of the official standard asset script (Unity 3/4.x).
  • FPSWalkerEnhanced - Enhanced version of the official FPSWalker standard asset script with many added features.
  • SimpleTankController - Emulates simple tank like movement.
  • ClickCharacterController - Moves the character to the cursor position on click.
  • TapMoveDragLook - Mobile touch-based character controller. Emulates Epic's Epic Citadel demo.
  • Wander - Creates a wandering behaviour for AI characters.

[edit] Weapon

  • ShootingWeaponScript - Allows a weapon to spawn bullets, supports scatter, gravity and rate of fire.
  • AimDownSights - An expansion script for the FPSWalker that smoothly animates aiming down the sights of an attached gun model.

[edit] Physics

[edit] Animation

  • AniMate - Script to quickly and easily create animations/tweens of almost any value including eased, rigidbody and rotation animation.
  • AnimationStepSync - Repositions object after animation ends (useful for positioning via animations).
  • iTween - Focusing on the established solutions and frameworks of projects such as TweenLite, Tweener, and other tweening systems, iTween is a battle-tested solution for streamlining production in the Unity3D environment.
  • iTweenX - Usefull variables to use with iTween if you always forget the keywords.
  • MoveObject - Basic functions for when you just need to move something from point A to point B, or rotate by a given number of degrees, without anything fancy.
  • Tween - An adaptation of the Tweener class of FLASH for unity.

[edit] Camera

  • AspectRatioEnforcer - Force the screen to a desired aspect ratio, using letterboxing/pillarboxing as necessary.
  • CameraGradientBackground - A simple two-color gradient background for your camera.
  • Camera Target Swap- Highly modified look at script , with GUI button to swap target objects to look at .
  • CarSmoothFollow - A smooth car follow script that dampens height, rotation and velocity based distance.
  • CrossFade - Smoothly fade the view from one camera to another.
  • CrossFadePro - Smoothly fade the view from one camera to another, with motion in both cameras.
  • DetectTouchMovement - Facilitate a bit scripting the pinching and turning with 2 fingers
  • DreamWipe - Fade the view from one camera to another, with the wavy distortion seen with dream sequences or flashbacks
  • FadeInOut - Fade a full-screen image in or out, good for fade in outs.
  • Floating Origin - Translates everything so that the camera stays at the origin to resolve spatial jittering in large scale games.
  • FlyCam Extended - Improved version of FlyThrough (below) with cursor capturing, smoothed movement, climbing/dropping, and fast and slow move speed modifiers.
  • FlyThrough - A basic fly through camera movement like the one within the editor.
  • FollowTrackingCamera - A pretty basic C# camera that allows you to turn on/of zoom or rotation as you desire.
  • Headbobber - Make an object bob up and down smoothly when you're pressing one or both of the horizontal/vertical axes.
  • KeyboardOrbit - Tweaked version of the MouseOrbit script that allows keyboard control (or whatever is bound to the "Horizontal" and "Vertical" axes)
  • KeyboardCameraControl - A C# script allowing various configurations for keyboard camera control. Also handles left keyboard modifiers (Alt,Ctrl,Shift)
  • MinimapCamera - This script can be attached to a camera to provide some basic minimap functionality such as zooming and a full-screen toggle.
  • MouseCameraControl - A C# script allowing various configurations for mouse camera control. Also handles left keyboard modifiers (Alt,Ctrl,Shift)
  • MouseLookPlus - A javascript mouselook with key control. based on the standard assets C# mouselook.
  • MouseLookPlus2 - A modification of MouseLookPlus to allow for moving and strafing the camera.
  • MouseOrbitImproved - Improved version of the original MouseOrbit script. Zooms with the mousewheel and uses linecast to make sure that object isn't behind anything.
  • MouseOrbitInfiteRotateZoom - No limits on rotating about target. Zooms with the mousewheel (can be limited).
  • MouseOrbitZoom - A camera that combines orbiting zooming and panning, initially set up to mimic the 3dsMax camera controls.
  • MouseTorque - A mouse look implementation using torque
  • MultipleCameraSwitcher - A script that allows you to switch between different cameras in your scene. Supports four camera views that can be toggled with a button.
  • MultipleCameraSwitcher2 - Switch between arbitrary numbers of cameras.
  • OffsetVanishingPoint - Sets the vanishing point of a camera to an arbitrary position.
  • RectangleWipe - Make an animated rectangular zooming screen wipe from one camera to another.
  • ScreenWipes - Base script used by CrossFade, CrossFadePro, DreamWipe, RectangleWipe, ShapeWipe, and SquishWipe.
  • ShapeWipe - Make an animated screen wipe, where an arbitrary shape containing the second view zooms in or out, and rotates.
  • SmoothFollow2 - This is designed to make a camera smoothly follow a ship in space.
  • SmoothFollowWithCameraBumper - Based on SmoothFollow2, this features a bumper mechanism to prevent the camera from going through
  • SmoothFollowAdvanced - Based on SmoothFollow2 & SmoothFollowWithCameraBumper, this features a design capability and controller input.
  • SmoothLookAt CS - CSharp version of SmoothLookAt JS script.
  • SmoothLookFrame - Looks at a target but tries to keep another target within the camera's view.
  • SmoothMouseLook - Modified version of MouseLook.cs script included in Unity's Standard Assets. It moves the camera with an easing effect.
  • SquishWipe - Make an animated screen wipe from one camera to another, where the first image is squished out of view.
  • StaticBackground - Use a static image as the background to your 3d scene.
  • TouchLook - Use the iOS touches to rotate the camera
  • TrackballCamera - a quick and dirty non-gimbal locking camera

[edit] Miscellaneous

  • SeekSteer - Used to make an object loosely follow a path of waypoints.
  • WalkOnSphere - Have a first person camera properly orient to walk on the surface of a sphere
  • WaypointMaster - Implementation of A* algorithm, based on waypoints.
  • Biped Parts Finder - Editor script for search simplification of parts of a biped body.
  • Click To Move - Moves an object when the left mouse button is clicked or towards the mouse if the button is held down
  • DoubleJumpController - A hack for the 2d gameplay tutorial character controller script, it allows the character to make a second jump when jumping, or make a little jump when falling.
  • Finite State Machine - A simple Finite State Machine framework to control NPCs.
  • FootstepHandler - Simple script for making footsteps.
  • Force2D - Constrain a GameObject to move in two dimensions.
  • Gesture_Recognizer - A math based gesture recognition script.
  • GridMove - A controller for character movement typically seen in old-school 2D RPGs and strategy games.
  • HeadLookController - Makes a character smoothly turn towards a specified point in space.
  • JCar - A car using wheel colliders.
  • KeyCombo - A class that can be used to detect fighting-game style combos.
  • LookAtMouse - Cause an object to rotate toward the cursor, along the y axis.
  • Pathfinding - [Old] A pathfinding-system using ray-casting to avoid obstacles.
Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox