public void updateOptions(ISoundOptions options) { EventHorizonBlazorInterop.Func <CachedEntity>( new object[] { new string[] { this.___guid, "updateOptions" }, options } ); }
public async ValueTask updateOptions(ISoundOptions options) { await EventHorizonBlazorInterop.Func <CachedEntity>( new object[] { new string[] { this.___guid, "updateOptions" }, options } ); }
public Sound( string name, object urlOrArrayBuffer, Scene scene, ActionCallback readyToPlayCallback = null, ISoundOptions options = null ) { var entity = EventHorizonBlazorInterop.New( new string[] { "BABYLON", "Sound" }, name, urlOrArrayBuffer, scene, readyToPlayCallback, options ); ___guid = entity.___guid; }
public static async ValueTask <Sound> NewSound( string name, object urlOrArrayBuffer, Scene scene, ActionCallback readyToPlayCallback = null, ISoundOptions options = null ) { var entity = await EventHorizonBlazorInterop.New( new string[] { "BABYLON", "Sound" }, name, urlOrArrayBuffer, scene, readyToPlayCallback, options ); return(new Sound(entity)); }