Skip to content

Instantly share code, notes, and snippets.

@kitposition
kitposition / PlayableSpeedControlMarker.cs
Created May 5, 2019 08:53
プロジェクト自体のtimeScaleは変更せず、Timelineの再生速度を任意のタイミングで変更します。
using UnityEngine;
using UnityEngine.Playables;
using UnityEngine.Timeline;
[System.Serializable]
public class PlayableSpeedControlMarker : Marker, INotification
{
[SerializeField]
private float speed = 1;
public float Speed => speed;
@kitposition
kitposition / WindBlower.cs
Last active April 7, 2019 16:35
Unity-chan SpringBoneに風の影響を付加するスクリプト
using UnityEngine;
[RequireComponent(typeof(BoxCollider), typeof(Rigidbody))]
public class WindBlower : MonoBehaviour
{
public bool isWindActive = true;
public Vector3 windPower = new Vector3(0, 0, -100f);
public Vector3 Force { get; private set; }
private void Reset()