/// <summary> /// Set shader parameter animation. /// </summary> public void SetShaderParameterAnimation(string name, ValueAnimation animation, WrapMode wrapMode, float speed) { Runtime.ValidateRefCounted(this); Material_SetShaderParameterAnimation(handle, name, (object)animation == null ? IntPtr.Zero : animation.Handle, wrapMode, speed); }
/// <summary> /// Remove attribute animation. /// </summary> public void RemoveAttributeAnimation(ValueAnimation attributeAnimation) { Runtime.ValidateRefCounted(this); ObjectAnimation_RemoveAttributeAnimation0(handle, (object)attributeAnimation == null ? IntPtr.Zero : attributeAnimation.Handle); }
/// <summary> /// Add attribute animation, attribute name can in following format: "attribute" or "#0/#1/attribute" or ""#0/#1/ /// #1/attribute. /// </summary> public void AddAttributeAnimation(string name, ValueAnimation attributeAnimation, WrapMode wrapMode, float speed) { Runtime.ValidateRefCounted(this); ObjectAnimation_AddAttributeAnimation(handle, name, (object)attributeAnimation == null ? IntPtr.Zero : attributeAnimation.Handle, wrapMode, speed); }
/// <summary> /// Set attribute animation. /// </summary> public void SetAttributeAnimation(string name, ValueAnimation attributeAnimation, WrapMode wrapMode = WrapMode.Loop, float speed = 1f) { Runtime.ValidateRefCounted(this); Animatable_SetAttributeAnimation(handle, name, (object)attributeAnimation == null ? IntPtr.Zero : attributeAnimation.Handle, wrapMode, speed); }
public ShaderParameterAnimationInfo(Material material, string name, ValueAnimation attributeAnimation, WrapMode wrapMode, float speed) : base(UrhoObjectFlag.Empty) { Runtime.Validate(typeof(ShaderParameterAnimationInfo)); handle = ShaderParameterAnimationInfo_ShaderParameterAnimationInfo((object)material == null ? IntPtr.Zero : material.Handle, name, (object)attributeAnimation == null ? IntPtr.Zero : attributeAnimation.Handle, wrapMode, speed); Runtime.RegisterObject(this); }
public ValueAnimationInfo(Urho.UrhoObject target, ValueAnimation animation, WrapMode wrapMode, float speed) : base(UrhoObjectFlag.Empty) { Runtime.Validate(typeof(ValueAnimationInfo)); handle = ValueAnimationInfo_ValueAnimationInfo0((object)target == null ? IntPtr.Zero : target.Handle, (object)animation == null ? IntPtr.Zero : animation.Handle, wrapMode, speed); Runtime.RegisterObject(this); }