本文整理汇总了C#中LoopType.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# LoopType.ToString方法的具体用法?C# LoopType.ToString怎么用?C# LoopType.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LoopType
的用法示例。
在下文中一共展示了LoopType.ToString方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AudioFrom
/// <summary>
/// Instantly changes an AudioSource's volume and pitch then returns it to it's starting volume and pitch over time. Default AudioSource attached to GameObject will be used.
/// </summary>
/// <param name="volume">
/// A <see cref="System.Single"/>
/// </param>
/// <param name="pitch">
/// A <see cref="System.Single"/>
/// </param>
/// <param name="time">
/// A <see cref="System.Single"/>
/// </param>
/// <param name="delay">
/// A <see cref="System.Single"/>
/// </param>
/// <param name="looptype">
/// A <see cref="LoopType"/>
/// </param>
public static void AudioFrom(this GameObject go,float volume,float pitch,float time,float delay,LoopType loopType){
iTween.AudioFrom(go,iTween.Hash("volume",volume,"pitch",pitch,"time",time,"delay",delay,"looptype",loopType.ToString()));
}
示例2: RotateAdd
/// <summary>
/// Adds supplied Euler angles in degrees to a GameObject's rotation over time.
/// </summary>
/// <param name="amount">
/// A <see cref="Vector3"/>
/// </param>
/// <param name="time">
/// A <see cref="System.Single"/>
/// </param>
/// <param name="delay">
/// A <see cref="System.Single"/>
/// </param>
/// <param name="easetype">
/// A <see cref="EaseType"/>
/// </param>
/// <param name="looptype">
/// A <see cref="LoopType"/>
/// </param>
public static void RotateAdd(this GameObject go,Vector3 amount,float time,float delay,EaseType easeType,LoopType loopType){
iTween.RotateAdd(go,iTween.Hash("amount",amount,"time",time,"delay",delay,"easeType",easeType.ToString(),"looptype",loopType.ToString()));
}
示例3: MoveTo
/// <summary>
/// Changes a GameObject's position over time to a supplied destination.
/// </summary>
/// <param name="position">
/// A <see cref="Vector3"/>
/// </param>
/// <param name="time">
/// A <see cref="System.Single"/>
/// </param>
/// <param name="delay">
/// A <see cref="System.Single"/>
/// </param>
/// <param name="easeType">
/// A <see cref="EaseType"/>
/// </param>
/// <param name="loopType">
/// A <see cref="LoopType"/>
/// </param>
public static void MoveTo(this GameObject go,Vector3 position,float time,float delay,EaseType easeType,LoopType loopType){
iTween.MoveTo(go,iTween.Hash("position",position,"time",time,"delay",delay,"easeType",easeType.ToString(),"looptype",loopType.ToString()));
}
示例4: LookTo
/// <summary>
/// Rotates a GameObject to look at the supplied Vector3 over time.
/// </summary>
/// <param name="lookTarget">
/// A <see cref="Vector3"/>
/// </param>
/// <param name="time">
/// A <see cref="System.Single"/>
/// </param>
/// <param name="delay">
/// A <see cref="System.Single"/>
/// </param>
/// <param name="easeType">
/// A <see cref="EaseType"/>
/// </param>
/// <param name="loopType">
/// A <see cref="LoopType"/>
/// </param>
public static void LookTo(this GameObject go,Vector3 lookTarget,float time,float delay,EaseType easeType,LoopType loopType){
iTween.LookTo(go,iTween.Hash("lookTarget",lookTarget,"time",time,"delay",delay,"easeType",easeType.ToString(),"looptype",loopType.ToString()));
}
示例5: FadeTo
/// <summary>
/// Changes a GameObject's alpha value over time. If a GUIText or GUITexture component is attached, it will become the target of the animation. Identical to using ColorTo and using the "a" parameter.
/// </summary>
/// <param name="alpha">
/// A <see cref="System.Single"/>
/// </param>
/// <param name="time">
/// A <see cref="System.Single"/>
/// </param>
/// <param name="delay">
/// A <see cref="System.Single"/>
/// </param>
/// <param name="loopType">
/// A <see cref="LoopType"/>
/// </param>
public static void FadeTo(this GameObject go,float alpha,float time,float delay,LoopType loopType){
iTween.FadeTo(go,iTween.Hash("alpha",alpha,"time",time,"delay",delay,"looptype",loopType.ToString()));
}
示例6: ColorTo
/// <summary>
/// Changes a GameObject's color values over time. If a GUIText or GUITexture component is attached, they will become the target of the animation.
/// </summary>
/// <param name="color">
/// A <see cref="Color"/>
/// </param>
/// <param name="time">
/// A <see cref="System.Single"/>
/// </param>
/// <param name="delay">
/// A <see cref="System.Single"/>
/// </param>
/// <param name="loopType">
/// A <see cref="LoopType"/>
/// </param>
public static void ColorTo(this GameObject go,Color color,float time,float delay,LoopType loopType){
iTween.ColorTo(go,iTween.Hash("color",color,"time",time,"delay",delay,"looptype",loopType.ToString()));
}
示例7: ScaleTo
/// <summary>
/// Changes a GameObject's scale over time.
/// </summary>
/// <param name="scale">
/// A <see cref="Vector3"/>
/// </param>
/// <param name="time">
/// A <see cref="System.Single"/>
/// </param>
/// <param name="delay">
/// A <see cref="System.Single"/>
/// </param>
/// <param name="easeType">
/// A <see cref="EaseType"/>
/// </param>
/// <param name="loopType">
/// A <see cref="LoopType"/>
/// </param>
public static void ScaleTo(this GameObject go,Vector3 scale,float time,float delay,EaseType easeType,LoopType loopType){
iTween.ScaleTo(go,iTween.Hash("scale",scale,"time",time,"delay",delay,"easeType",easeType.ToString(),"looptype",loopType.ToString()));
}
示例8: RotateFrom
/// <summary>
/// Instantly changes a GameObject's Euler angles in degrees then returns it to it's starting rotation over time.
/// </summary>
/// <param name="rotation">
/// A <see cref="Vector3"/>
/// </param>
/// <param name="time">
/// A <see cref="System.Single"/>
/// </param>
/// <param name="delay">
/// A <see cref="System.Single"/>
/// </param>
/// <param name="easeType">
/// A <see cref="EaseType"/>
/// </param>
/// <param name="loopType">
/// A <see cref="LoopType"/>
/// </param>
public static void RotateFrom(this GameObject go,Vector3 rotation,float time,float delay,EaseType easeType,LoopType loopType){
iTween.RotateFrom(go,iTween.Hash("rotation",rotation,"time",time,"delay",delay,"easeType",easeType.ToString(),"looptype",loopType.ToString()));
}