Casting problem with Windows Splash creen CS0029
Error CS0029 Cannot implicitly convert type 'Windows.ApplicationModel.Activation.SplashScreen' to 'SplashScreen' EmoticonsEscape E:\Projects\TapJump\11\EmoticonsEscape\App.xaml.cs 55 Active
Code:
protected override void OnActivated(IActivatedEventArgs args) { string appArgs = "";
switch (args.Kind) { case ActivationKind.Protocol: ProtocolActivatedEventArgs eventArgs = args as ProtocolActivatedEventArgs; splashScreen = eventArgs.SplashScreen; appArgs += string.Format("Uri={0}", eventArgs.Uri.AbsoluteUri); break; } InitializeUnity(appArgs); }
//Code
namespace Windows.ApplicationModel.Activation { public sealed class ProtocolActivatedEventArgs : IProtocolActivatedEventArgs, IActivatedEventArgs { public ActivationKind Kind { get; } public ApplicationExecutionState PreviousExecutionState { get; } public SplashScreen SplashScreen { get; } public Uri Uri { get; } } }
Please guide me to cast this, Thanks in advance.
Answer by Shubhra · Feb 05, 2016 at 05:22 PM
Check if there is any class named SplashScreen in your unity project. That may be causing the problem @arunkarnann
Your answer
Follow this Question
Related Questions
iOS game loaded but stucked on splash screen 1 Answer
White screen on android startup 0 Answers
Inheritance and type casting problems 0 Answers