Add **Web platform with Emscripten**
This commit is contained in:
@@ -52,6 +52,7 @@ namespace FlaxEditor.Windows
|
||||
{ PlatformType.PS5, new PS5() },
|
||||
{ PlatformType.Mac, new Mac() },
|
||||
{ PlatformType.iOS, new iOS() },
|
||||
{ PlatformType.Web, new Web() },
|
||||
};
|
||||
|
||||
public BuildTabProxy(GameCookerWindow win, PlatformSelector platformSelector)
|
||||
@@ -165,6 +166,7 @@ namespace FlaxEditor.Windows
|
||||
case BuildPlatform.UWPx64:
|
||||
case BuildPlatform.LinuxX64:
|
||||
case BuildPlatform.AndroidARM64:
|
||||
case BuildPlatform.Web:
|
||||
text += "\nUse Flax Launcher and download the required package.";
|
||||
break;
|
||||
#endif
|
||||
@@ -538,6 +540,11 @@ namespace FlaxEditor.Windows
|
||||
protected override BuildPlatform BuildPlatform => BuildPlatform.iOSARM64;
|
||||
}
|
||||
|
||||
class Web : Platform
|
||||
{
|
||||
protected override BuildPlatform BuildPlatform => BuildPlatform.Web;
|
||||
}
|
||||
|
||||
class Editor : CustomEditor
|
||||
{
|
||||
private PlatformType _platform;
|
||||
@@ -592,6 +599,9 @@ namespace FlaxEditor.Windows
|
||||
case PlatformType.iOS:
|
||||
name = "iOS";
|
||||
break;
|
||||
case PlatformType.Web:
|
||||
name = "Web";
|
||||
break;
|
||||
default:
|
||||
name = Utilities.Utils.GetPropertyNameUI(_platform.ToString());
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user