示例#1
0
 public static async ValueTask <Animation> CreateAnimation(string property, decimal animationType, decimal framePerSecond, EasingFunction easingFunction)
 {
     return(await EventHorizonBlazorInterop.FuncClass <Animation>(
                entity => new Animation()
     {
         ___guid = entity.___guid
     },
                new object[]
     {
         new string[] { "BABYLON", "Animation", "CreateAnimation" }, property, animationType, framePerSecond, easingFunction
     }
                ));
 }
示例#2
0
 public static async ValueTask <Animatable> CreateMergeAndStartAnimation(string name, Node node, string targetProperty, decimal framePerSecond, decimal totalFrame, object from, object to, System.Nullable <decimal> loopMode = null, EasingFunction easingFunction = null, ActionCallback onAnimationEnd = null)
 {
     return(await EventHorizonBlazorInterop.FuncClass <Animatable>(
                entity => new Animatable()
     {
         ___guid = entity.___guid
     },
                new object[]
     {
         new string[] { "BABYLON", "Animation", "CreateMergeAndStartAnimation" }, name, node, targetProperty, framePerSecond, totalFrame, from, to, loopMode, easingFunction, onAnimationEnd
     }
                ));
 }
 public static Animatable[] CreateAndStartHierarchyAnimation(string name, Node node, bool directDescendantsOnly, string targetProperty, decimal framePerSecond, decimal totalFrame, object from, object to, System.Nullable <decimal> loopMode = null, EasingFunction easingFunction = null, ActionCallback onAnimationEnd = null)
 {
     return(EventHorizonBlazorInterop.FuncArrayClass <Animatable>(
                entity => new Animatable()
     {
         ___guid = entity.___guid
     },
                new object[]
     {
         new string[] { "BABYLON", "Animation", "CreateAndStartHierarchyAnimation" }, name, node, directDescendantsOnly, targetProperty, framePerSecond, totalFrame, from, to, loopMode, easingFunction, onAnimationEnd
     }
                ));
 }