/// <summary> /// Set a new audio source curve to this <see cref="IntroloopPlayer">. The settings will be propagated to all <see cref="AudioSource"> it uses. /// </summary> public void SetAudioSourceCurveType(AudioSourceCurveType curveType, AnimationCurve audioCurve) { foreach (AudioSource aSource in InternalAudioSources) { aSource.SetCustomCurve(curveType, audioCurve); } }
static int GetCustomCurve(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); AudioSource obj = LuaScriptMgr.GetUnityObject <AudioSource>(L, 1); AudioSourceCurveType arg0 = LuaScriptMgr.GetNetObject <AudioSourceCurveType>(L, 2); AnimationCurve o = obj.GetCustomCurve(arg0); LuaScriptMgr.PushObject(L, o); return(1); }
static int SetCustomCurve(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 3); AudioSource obj = LuaScriptMgr.GetUnityObject <AudioSource>(L, 1); AudioSourceCurveType arg0 = LuaScriptMgr.GetNetObject <AudioSourceCurveType>(L, 2); AnimationCurve arg1 = LuaScriptMgr.GetNetObject <AnimationCurve>(L, 3); obj.SetCustomCurve(arg0, arg1); return(0); }
static int SetCustomCurve(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 3); AudioSource obj = (AudioSource)LuaScriptMgr.GetUnityObjectSelf(L, 1, "AudioSource"); AudioSourceCurveType arg0 = (AudioSourceCurveType)LuaScriptMgr.GetNetObject(L, 2, typeof(AudioSourceCurveType)); AnimationCurve arg1 = (AnimationCurve)LuaScriptMgr.GetNetObject(L, 3, typeof(AnimationCurve)); obj.SetCustomCurve(arg0, arg1); return(0); }
static int GetCustomCurve(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); AudioSource obj = (AudioSource)LuaScriptMgr.GetUnityObjectSelf(L, 1, "AudioSource"); AudioSourceCurveType arg0 = (AudioSourceCurveType)LuaScriptMgr.GetNetObject(L, 2, typeof(AudioSourceCurveType)); AnimationCurve o = obj.GetCustomCurve(arg0); LuaScriptMgr.PushObject(L, o); return(1); }
public AnimationCurve GetCustomCurve(AudioSourceCurveType type) { throw new NotImplementedException("なにこれ"); }
public AnimationCurve GetCustomCurve(AudioSourceCurveType type) { return(AudioSource.GetCustomCurveHelper(this, type)); }
public void SetCustomCurve(AudioSourceCurveType type, AnimationCurve curve) { AudioSource.SetCustomCurveHelper(this, type, curve); }
private static extern AnimationCurve GetCustomCurveHelper([NotNull("ArgumentNullException")] AudioSource source, AudioSourceCurveType type);
extern static private AnimationCurve GetCustomCurveHelper(AudioSource source, AudioSourceCurveType type);
IReadOnlyAnimationCurve IReadOnlyAudioSource.GetCustomCurve(AudioSourceCurveType type) => this.GetCustomCurve(type);
public extern void SetCustomCurve(AudioSourceCurveType type, AnimationCurve curve);
public void SetCustomCurve(AudioSourceCurveType type, AnimationCurve curve) { audio.SetCustomCurve(type, curve); }
public extern AnimationCurve GetCustomCurve(AudioSourceCurveType type);
/// <summary> /// Make this <see cref="IntroloopPlayer"> audio curve to be like <paramref name="matchTo"> for a specific <see cref="AudioSourceCurveType"> /// </summary> public void MatchAudioSourceCurveType(AudioSourceCurveType curveType, AudioSource matchTo) { SetAudioSourceCurveType(curveType, matchTo.GetCustomCurve(curveType)); }
public AnimationCurve GetCustomCurve(AudioSourceCurveType type) { return(audio.GetCustomCurve(type)); }
extern static private void SetCustomCurveHelper(AudioSource source, AudioSourceCurveType type, AnimationCurve curve);
public ReadOnlyAnimationCurve GetCustomCurve(AudioSourceCurveType type) => _obj.GetCustomCurve(type).AsReadOnly();