Example #1
0
 public static Tween TweenStepOffset(this CharacterController character, float to, float duration) =>
 Tweening.To(getter: () => character.stepOffset,
             setter: stepOffset => character.stepOffset = stepOffset,
             to, duration).SetTarget(character);
Example #2
0
 public static Tween TweenReflectionsDelay(this AudioReverbZone filter, float to, float duration) =>
 Tweening.To(getter: () => filter.reflectionsDelay,
             setter: reflectionsDelay => filter.reflectionsDelay = reflectionsDelay,
             to, duration).SetTarget(filter);
Example #3
0
 public static Tween TweenLFReference(this AudioReverbZone filter, float to, float duration) =>
 Tweening.To(getter: () => filter.LFReference,
             setter: LFReference => filter.LFReference = LFReference,
             to, duration).SetTarget(filter);
Example #4
0
 public static Tween TweenBottom(this RectOffset offset, int to, float duration) =>
 Tweening.To(getter: () => offset.bottom,
             setter: bottom => offset.bottom = bottom,
             to, duration).SetId(offset.GetHashCode());
Example #5
0
 public static Tween TweenDiffusion(this AudioReverbZone filter, float to, float duration) =>
 Tweening.To(getter: () => filter.diffusion,
             setter: diffusion => filter.diffusion = diffusion,
             to, duration).SetTarget(filter);
Example #6
0
 public static Tween TweenValue(this Scrollbar scrollbar, float to, float duration) =>
 Tweening.To(getter: () => scrollbar.value,
             setter: value => scrollbar.value = value,
             to, duration).SetTarget(scrollbar);
Example #7
0
 public static Tween TweenRight(this RectOffset offset, int to, float duration) =>
 Tweening.To(getter: () => offset.right,
             setter: right => offset.right = right,
             to, duration).SetId(offset.GetHashCode());
 public static Tween TweenWorldAccelerationScale(this Cloth cloth, float to, float duration) =>
 Tweening.To(getter: () => cloth.worldAccelerationScale,
             setter: worldAccelerationScale => cloth.worldAccelerationScale = worldAccelerationScale,
             to, duration).SetTarget(cloth);
 public static Tween TweenExternalAcceleration(this Cloth cloth, Vector3 to, float duration) =>
 Tweening.To(getter: () => cloth.externalAcceleration,
             setter: externalAcceleration => cloth.externalAcceleration = externalAcceleration,
             to, duration).SetTarget(cloth);
 public static Tween TweenFriction(this Cloth cloth, float to, float duration) =>
 Tweening.To(getter: () => cloth.friction,
             setter: friction => cloth.friction = friction,
             to, duration).SetTarget(cloth);
 public static Tween TweenCollisionMassScale(this Cloth cloth, float to, float duration) =>
 Tweening.To(getter: () => cloth.collisionMassScale,
             setter: collisionMassScale => cloth.collisionMassScale = collisionMassScale,
             to, duration).SetTarget(cloth);
Example #12
0
 public static Tween TweenCenter(this CharacterController character, Vector3 to, float duration) =>
 Tweening.To(getter: () => character.center,
             setter: center => character.center = center,
             to, duration).SetTarget(character);
Example #13
0
 public static Tween TweenMinMoveDistance(this CharacterController character, float to, float duration) =>
 Tweening.To(getter: () => character.minMoveDistance,
             setter: minMoveDistance => character.minMoveDistance = minMoveDistance,
             to, duration).SetTarget(character);
Example #14
0
 public static Tween TweenSkinWidth(this CharacterController character, float to, float duration) =>
 Tweening.To(getter: () => character.skinWidth,
             setter: skinWidth => character.skinWidth = skinWidth,
             to, duration).SetTarget(character);
 public static Tween TweenSleepThreshold(this Cloth cloth, float to, float duration) =>
 Tweening.To(getter: () => cloth.sleepThreshold,
             setter: sleepThreshold => cloth.sleepThreshold = sleepThreshold,
             to, duration).SetTarget(cloth);
 public static Tween TweenRandomAcceleration(this Cloth cloth, Vector3 to, float duration) =>
 Tweening.To(getter: () => cloth.randomAcceleration,
             setter: randomAcceleration => cloth.randomAcceleration = randomAcceleration,
             to, duration).SetTarget(cloth);
Example #17
0
 public static Tween TweenSize(this Scrollbar scrollbar, float to, float duration) =>
 Tweening.To(getter: () => scrollbar.size,
             setter: size => scrollbar.size = size,
             to, duration).SetTarget(scrollbar);
 public static Tween TweenStiffnessFrequency(this Cloth cloth, float to, float duration) =>
 Tweening.To(getter: () => cloth.stiffnessFrequency,
             setter: stiffnessFrequency => cloth.stiffnessFrequency = stiffnessFrequency,
             to, duration).SetTarget(cloth);
Example #19
0
 public static Tween TweenSpacing(this HorizontalOrVerticalLayoutGroup layoutGroup, float to, float duration) =>
 Tweening.To(getter: () => layoutGroup.spacing,
             setter: spacing => layoutGroup.spacing = spacing,
             to, duration).SetTarget(layoutGroup);
 public static Tween TweenSelfCollisionDistance(this Cloth cloth, float to, float duration) =>
 Tweening.To(getter: () => cloth.selfCollisionDistance,
             setter: selfCollisionDistance => cloth.selfCollisionDistance = selfCollisionDistance,
             to, duration).SetTarget(cloth);
Example #21
0
 public static Tween TweenTop(this RectOffset offset, int to, float duration) =>
 Tweening.To(getter: () => offset.top,
             setter: top => offset.top = top,
             to, duration).SetId(offset.GetHashCode());
 public static Tween TweenSelfCollisionStiffness(this Cloth cloth, float to, float duration) =>
 Tweening.To(getter: () => cloth.selfCollisionStiffness,
             setter: selfCollisionStiffness => cloth.selfCollisionStiffness = selfCollisionStiffness,
             to, duration).SetTarget(cloth);
Example #23
0
 public static Tween TweenLeft(this RectOffset offset, int to, float duration) =>
 Tweening.To(getter: () => offset.left,
             setter: left => offset.left = left,
             to, duration).SetId(offset.GetHashCode());
 public static Tween TweenStretchingStiffness(this Cloth cloth, float to, float duration) =>
 Tweening.To(getter: () => cloth.stretchingStiffness,
             setter: stretchingStiffness => cloth.stretchingStiffness = stretchingStiffness,
             to, duration).SetTarget(cloth);
Example #25
0
 public static Tween TweenDensity(this AudioReverbZone filter, float to, float duration) =>
 Tweening.To(getter: () => filter.density,
             setter: density => filter.density = density,
             to, duration).SetTarget(filter);
 public static Tween TweenDamping(this Cloth cloth, float to, float duration) =>
 Tweening.To(getter: () => cloth.damping,
             setter: damping => cloth.damping = damping,
             to, duration).SetTarget(cloth);
Example #27
0
 public static Tween TweenDecayTime(this AudioReverbZone filter, float to, float duration) =>
 Tweening.To(getter: () => filter.decayTime,
             setter: decayTime => filter.decayTime = decayTime,
             to, duration).SetTarget(filter);
 public static Tween TweenBendingStiffness(this Cloth cloth, float to, float duration) =>
 Tweening.To(getter: () => cloth.bendingStiffness,
             setter: bendingStiffness => cloth.bendingStiffness = bendingStiffness,
             to, duration).SetTarget(cloth);
Example #29
0
 public static Tween TweenMaxDistance(this AudioReverbZone filter, float to, float duration) =>
 Tweening.To(getter: () => filter.maxDistance,
             setter: maxDistance => filter.maxDistance = maxDistance,
             to, duration).SetTarget(filter);
Example #30
0
 public static Tween TweenSlopeLimit(this CharacterController character, float to, float duration) =>
 Tweening.To(getter: () => character.slopeLimit,
             setter: slopeLimit => character.slopeLimit = slopeLimit,
             to, duration).SetTarget(character);