-
-
Notifications
You must be signed in to change notification settings - Fork 2
Ping Pong Linear Tween
eisclimber edited this page Feb 11, 2024
·
2 revisions
class in ExPresSXR.Minigames.CoinThrow / Extends UnityEngine.MonoBehaviour
Component added via Component Menu
This is only a minimal script to allow ping-pong-tweening.
If you need something more elaborate, safe yourself the headache and buy a tween library like DOTween:)
-
Vector3 _offset
: Offset relative to the GOs initial position. -
float _duration
: Duration of the tween for one direction. Default:1.0f
-
bool _startOnAwake
: If enabled, the tween starts automatically during Awake().
-
void StartTween()
: Starts the tween and/or resets its progress. -
void StopTween(bool resetPos = false)
: Stops the tween and resets the position if resetPos is true. -
void ResetTween()
: Resets the position of the tweened object to its initial position.
Autor: Luca 'eisclimber' Dreiling; License: MIT
- Getting Started
- Development and Contribution
- Misc
- Experimentation
- Data Gatherering
- Eye Tracking
- ExPresS XR Rig
- Interaction
- Base Button
- Button Quiz
- Collision Hand Rumbler
- Collision Sound Emitter
- Exit Game Interactable (Script Deprecated)
- Interactables
- Haptic Impulse Trigger
- Socket Interactors
- Inverse Kinematics
- Localization
- Minigames
- Coin Scale
- Coin Throw
- Sword Cleaning
- Misc
- Movement
- Presentation
- UI