You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sound.CreateMusicFromFile(filePath: string) -> music: Music | nil, err: string
Parameters:
filepath: Path to the image file (relative to the resources directory).
Returns:
music: Music object opened from the file path or nil if the opening failed.
err: If music is nil, an error message containing the reason this function failed.
Remarks:
This function will fail if the image file has not been registered server-side using RegisterClientAssets, independently from the file existence on the host filesystem.
Contrary to functions like assets.GetTexture, this function will always instantiate a new Music every call, even if another one already exists.