Quantcast
Channel: Questions in topic: "compile-error"
Viewing all 166 articles
Browse latest View live

Warning CS1685 as Error

$
0
0
I am getting warning CS1685 as Error (can not compile/run) warning CS1685: The predefined type `System.Runtime.CompilerServices.ExtensionAttribute' is ambiguous. Using definition from `System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' Details of the message reference two files: C:\\Program Files\Unity 5\Editor\Data\Mono\lib\mono\unity\System.Core.dll (Location of the symbol related to previous warning) C:\Users\Roman\Documents\savit-unity\SourcesUnity\Savit.Unity\Assets\Plugins\x86_64\Microsoft.Scripting.ExtensionAttribute.dll (Location of the symbol related to previous warning) And unhandled exception: Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded. at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool) at System.Reflection.Assembly.GetTypes () [0x00000] in :0 at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in :0 at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in :0 at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in :0 at Mono.CSharp.Driver.LoadReferences () [0x00000] in :0 at Mono.CSharp.Driver.Compile () [0x00000] in :0 at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in :0 Last line is: The class System.Configuration.ApplicationSettingsBase could not be loaded, used in System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 It should be only compiler warning so what does it Unity treat it like an error? More importantly what can I do about this error? Thank you

Android IL2CPP compile error for Unity 5.4.0f3

$
0
0
I have been trying to build my Unity Android project using IL2CPP since 5.4 came out but so far I have not been able to get it to work despite the project compiling fine on Mono. The build process seems fine at first until I hit the part of the build process where the progress bar says "Converting managed assemblies to C++" where the build process then gets stuck for about half an hour before crashing and displaying the following three errors. First error:- Failed running C:/Android/android-ndk-r10e/toolchains/llvm-3.6/prebuilt/windows-x86_64/bin/clang++ -o "Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so.debug" -Wl,-soname,libil2cpp.so.debug --sysroot "C:/Android/android-ndk-r10e/platforms/android-9/arch-arm" -gcc-toolchain "C:/Android/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64" -target armv7-none-linux-androideabi -shared -fuse-ld=gold -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Apple_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp-firstpass_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_4.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_5.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_6.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_7.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_8.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_9.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_AWSSDK.CognitoIdentity_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_AWSSDK.CognitoSync_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_AWSSDK.Core_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_AWSSDK.Core_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_AWSSDK.Core_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_AWSSDK.DynamoDBv2_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_AWSSDK.DynamoDBv2_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_AWSSDK.Lambda_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_AWSSDK.S3_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_AWSSDK.SecurityToken_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Common_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_DDDatabase_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_DDDSerializer_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Facebook.Unity_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_10.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_11.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_12.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_13.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_14.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_15.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_16.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_17.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_18.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_19.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_20.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_21.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_22.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_23.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_24.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_25.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_4.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_5.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_6.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_7.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_8.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_9.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Mono.Data.Sqlite_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Mono.Data.Tds_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Mono.Security_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Mono.Security_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_4.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_5.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_6.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_7.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_8.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Newtonsoft.Json_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Newtonsoft.Json_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_protobuf-net_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Stores_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Core_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Data_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Data_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Data_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Transactions_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Xml.Linq_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Xml_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Xml_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Xml_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Xml_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System_4.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System_5.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine.Advertisements_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine.Analytics_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine.Purchasing_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine.UI_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine.UI_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_winrt_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\GenericMethods0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\GenericMethods1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\GenericMethods2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\GenericMethods3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppAttributes.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCodeRegistration.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValuesTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppDelegateWrappersManagedToNativeTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGenericClassTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGenericInstDefinitions.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGenericMethodDefinitions.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGenericMethodPointerTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGenericMethodTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGuids.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppInvokerTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppMarshalingFunctionsTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppMetadataRegistration.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppMetadataUsage.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppMethodPointerTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppReversePInvokeWrapperTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppTypeDefinitions.o" -L "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\il2cpp\Release/StaticLibs/armeabi-v7a" -lil2cpp -lbdwgc -L "C:/Android/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a" -lgnustl_static Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:14914: error: undefined reference to 'IOSInit' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:14939: error: undefined reference to 'IOSLogInWithReadPermissions' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:14939: error: undefined reference to 'IOSLogInWithReadPermissions' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:14956: error: undefined reference to 'IOSLogInWithPublishPermissions' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:14956: error: undefined reference to 'IOSLogInWithPublishPermissions' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:14969: error: undefined reference to 'IOSLogOut' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:14969: error: undefined reference to 'IOSLogOut' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:14994: error: undefined reference to 'IOSShareLink' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15047: error: undefined reference to 'IOSFeedShare' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15116: error: undefined reference to 'IOSAppRequest' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15165: error: undefined reference to 'IOSAppInvite' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15194: error: undefined reference to 'IOSCreateGameGroup' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15219: error: undefined reference to 'IOSJoinGameGroup' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15219: error: undefined reference to 'IOSJoinGameGroup' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15244: error: undefined reference to 'IOSFBAppEventsLogEvent' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15277: error: undefined reference to 'IOSFBAppEventsLogPurchase' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15298: error: undefined reference to 'IOSFBAppEventsSetLimitEventUsage' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15298: error: undefined reference to 'IOSFBAppEventsSetLimitEventUsage' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15307: error: undefined reference to 'IOSGetAppLink' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15307: error: undefined reference to 'IOSGetAppLink' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15316: error: undefined reference to 'IOSFBSdkVersion' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity_0.cpp:15316: error: undefined reference to 'IOSFBSdkVersion' clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation) UnityEngine.Debug:LogError(Object) NativeCompiler:RunProgram(ProcessStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:60) NativeCompiler:Execute(String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:26) UnityEditor.Android.c__AnonStorey2:<>m__6(TargetArchCompilerSettings) c__AnonStorey7C`1:<>m__11A(Object) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:89) ------------------------------------------------------------------------------------------------------------------------------------------------------ Second error:- Failed running C:/Android/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-objcopy "Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so.debug" "Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --strip-all C:/Android/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-objcopy: 'Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so.debug': No such file UnityEngine.Debug:LogError(Object) NativeCompiler:RunProgram(ProcessStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:60) NativeCompiler:Execute(String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:26) UnityEditor.Android.c__AnonStorey2:<>m__7(TargetArchCompilerSettings)c__AnonStorey7C`1:<>m__11A(Object) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:89) ------------------------------------------------------------------------------------------------------------------------------------------------------ Third error:- Exception: IL2CPP Linkage failed UnityEditor.Android.AndroidIl2CppClangCompiler.CompileDynamicLibrary (System.String libraryFile, IEnumerable`1 sourceFiles, IEnumerable`1 includePaths, IEnumerable`1 libraries, IEnumerable`1 libraryPaths) UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:223) UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean developmentBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:132) UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.PrepareIl2cppFiles (UnityEditor.Android.PostProcessor.PostProcessorContext context, UnityEditor.Android.AndroidIl2CppPlatformProvider provider) UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args) UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:176) UnityEditor.HostView:OnGUI() ------------------------------------------------------------------------------------------------------------------------------------------------------ My first guess would be that this issue has to do with my third-party plugins conflicting with IL2CPP (I'm using Appsflyer, AWS, Facebook and Google Play Game Services with my project and the crash logs seem to indicate that the Facebook plugin might be at fault here) but I've already tried updating all those plugins to their latest version and my project compiles fine when I build to iOS using IL2CPP. Are there any fixes that can be done on my side to fix this problem?

How to fix all compilation errors in unity during Building a

$
0
0
I tried everything but i am not able to fix these problems. I uninstalled and install again unity. But error comes when i create new project and build it.

i was following the roll a ball tutorial and in the script component it says there is a compile error and it says the reference script on this behavior is missing i dont know what to do

$
0
0
it also says the game game object player is missing.

i was following the roll a ball tutorial but it says there is a compile error in the script component and it says the referenced script on this behavior is missing

$
0
0
it says the referenced script that is missing is game object player

i'm still having problems with my compiler errors and the code is all right what is the problem cause it's not my code.

$
0
0
this is the pop up i'm getting right now 'Assets/Builds/Roll a Ball Mac Cloherty .app/Contents/Resources/Data/Managed/Assembly-CSharp.dll' shouldn't be queried by IsAssemblyCompatible, missing IsInternalOrCompiledAssembly check ? UnityEditorInternal.InternalEditorUtility:GetMonoIslands() UnityEditor.SyncVS:SyncVisualStudioProjectIfItAlreadyExists() so i really don't know what my problem is at all.

Get Script Component In Parent

$
0
0
I have two scripts. One is attached to a trigger, "DestroyTruck", and the other is attached to the Camera Rig, "PlayerAudio". The truck is a child of the Camera Rig, and is destroyed by the script when it enters the trigger. In the script attached to the trigger, I am trying to access the "PlayerAudio" script attached to the truck's parent Camera Rig, and change a public variable in that script. When I try to get the script component of the parent, I get this error.> "Assets/Resources/DestroyTruck.cs(6,87):> error CS1729: The type 'PlayerAudio'> does not contain a constructor that> takes '1' arguments" DestroyTruck.cs public class DestroyTruck : MonoBehaviour { void OnTriggerEnter (Collider other){ PlayerAudio Intro = new PlayerAudio(GetComponentInParent); Intro.WorkClip = 0; Destroy (other.gameObject); Destroy (this); } } PlayerAudio.cs public class PlayerAudio : MonoBehaviour { AudioSource audio; public AudioClip[] ClipsWait, ClipsWork; public double CurrX, CurrY, CurrZ; public int WaitTime, WaitClip, WorkClip; void Start () { audio = GetComponent(); ClipsWait = new AudioClip[]{(AudioClip)Resources.Load("AudioClips/Hey Get Back To Work"),(AudioClip)Resources.Load("AudioClips/Get To Work Recruit"),(AudioClip)Resources.Load("AudioClips/Get To Work"),(AudioClip)Resources.Load("AudioClips/Hey Are You There")}; ClipsWork = new AudioClip[]{(AudioClip)Resources.Load("AudioClips/Intro")}; CurrX = this.gameObject.transform.position.x; CurrY = this.gameObject.transform.position.y; CurrZ = this.gameObject.transform.position.z; WaitTime = 0; WaitClip = 0; WorkClip = -1; } void Update () { if (CurrX == this.gameObject.transform.position.x && CurrY == this.gameObject.transform.position.y && CurrZ == this.gameObject.transform.position.z) { WaitTime++; if (WaitTime >= 1800) { audio.clip = ClipsWait[WaitClip]; audio.Play(); WaitTime = 0; if (WaitClip < 3) { WaitClip++; } else { WaitClip = 0; } } } else { CurrX = this.gameObject.transform.position.x; CurrY = this.gameObject.transform.position.y; CurrZ = this.gameObject.transform.position.z; WaitTime = 0; } if (WorkClip != -1) { audio.clip = ClipsWork[WorkClip]; audio.Play(); WorkClip = -1; } } } Why does the line, PlayerAudio Intro = new PlayerAudio(GetComponentInParent); cause an error, and what do I need to do in order to properly access that script.

Exception: IL2CPP Linkage failed

$
0
0
Hello, i am getting this error when im trying to build an android .apk Exception: IL2CPP Linkage failed UnityEditor.Android.AndroidIl2CppClangCompiler.CompileDynamicLibrary (System.String libraryFile, IEnumerable`1 sourceFiles, IEnumerable`1 includePaths, IEnumerable`1 libraries, IEnumerable`1 libraryPaths) UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:223) UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean developmentBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:132) UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.PrepareIl2cppFiles (UnityEditor.Android.PostProcessor.PostProcessorContext context, UnityEditor.Android.AndroidIl2CppPlatformProvider provider) UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args) UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:176) UnityEditor.HostView:OnGUI() There are a couple more errors that come with it, and they are : Failed running E:/android-ndk-r10e/toolchains/llvm-3.6/prebuilt/windows-x86_64/bin/clang++ -o "Temp/StagingArea\assets\bin\Data\Native\x86\libil2cpp.so.debug" -Wl,-soname,libil2cpp.so.debug --sysroot "E:/android-ndk-r10e/platforms/android-9/arch-x86" -gcc-toolchain "E:/android-ndk-r10e/toolchains/x86-4.9/prebuilt/windows-x86_64" -target i686-none-linux-android -shared -fuse-ld=gold -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Assembly-CSharp-firstpass_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Assembly-CSharp_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Assembly-CSharp_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Assembly-CSharp_10.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Assembly-CSharp_11.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Assembly-CSharp_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Assembly-CSharp_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Assembly-CSharp_4.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Assembly-CSharp_5.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Assembly-CSharp_6.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Assembly-CSharp_7.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Assembly-CSharp_8.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Assembly-CSharp_9.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_DOTween46_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_DOTween_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_DOTween_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_FyberLitJson_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_FyberPlugin_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Generics_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Generics_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Generics_10.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Generics_11.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Generics_12.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Generics_13.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Generics_14.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Generics_15.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Generics_16.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Generics_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Generics_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Generics_4.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Generics_5.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Generics_6.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Generics_7.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Generics_8.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Generics_9.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Ionic.Zlib.CF_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Mono.Posix_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Mono.Security_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Mono.Security_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_mscorlib_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_mscorlib_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_mscorlib_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_mscorlib_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_mscorlib_4.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_mscorlib_5.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_mscorlib_6.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_mscorlib_7.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_mscorlib_8.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_mscorlib_9.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Opencoding.CommandHandlers_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Opencoding.Console_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Opencoding.LogHistory_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Opencoding.Shared_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_P31RestKit_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_Shared_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_System.Configuration_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_System.Core_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_System.Security_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_System.Xml_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_System.Xml_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_System.Xml_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_System.Xml_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_System_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_System_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_System_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_System_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_UnityEngine.UI_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_UnityEngine.UI_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_UnityEngine_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_UnityEngine_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_UnityEngine_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_UnityEngine_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Bulk_VacuumShaders.CurvedWorld_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\GenericMethods0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\GenericMethods1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\GenericMethods2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppAttributes.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCodeRegistration.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValuesTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_0Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_10Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_11Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_12Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_13Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_14Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_15Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_16Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_17Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_18Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_19Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_1Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_20Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_21Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_22Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_23Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_24Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_25Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_26Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_27Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_28Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_29Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_2Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_30Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_31Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_32Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_33Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_34Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_35Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_36Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_37Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_38Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_39Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_3Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_40Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_41Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_42Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_43Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_4Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_5Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_6Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_7Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_8Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppCompilerCalculateTypeValues_9Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppDelegateWrappersManagedToNativeTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppGenericClassTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppGenericInstDefinitions.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppGenericMethodDefinitions.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppGenericMethodPointerTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppGenericMethodTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppGuids.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppInvokerTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppMarshalingFunctionsTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppMetadataRegistration.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppMetadataUsage.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppMethodPointerTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppReversePInvokeWrapperTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\x86\Il2CppTypeDefinitions.o" -L "E:\Software\Unity3d\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\il2cpp\Release/StaticLibs/x86" -lil2cpp -lbdwgc -L "E:/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86" -lgnustl_static Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp-firstpass_0.cpp:32690: error: undefined reference to '_ReportAchievement' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp-firstpass_0.cpp:32690: error: undefined reference to '_ReportAchievement' clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation) UnityEngine.Debug:LogError(Object) NativeCompiler:RunProgram(ProcessStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:60) NativeCompiler:Execute(String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:26) UnityEditor.Android.c__AnonStorey2:<>m__6(TargetArchCompilerSettings) Failed running E:/android-ndk-r10e/toolchains/llvm-3.6/prebuilt/windows-x86_64/bin/clang++ -o "Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so.debug" -Wl,-soname,libil2cpp.so.debug --sysroot "E:/android-ndk-r10e/platforms/android-9/arch-arm" -gcc-toolchain "E:/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64" -target armv7-none-linux-androideabi -shared -fuse-ld=gold -Wl,--no-undefined -Wl,-z,noexecstack -Wl,--gc-sections -Wl,--build-id "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp-firstpass_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_10.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_11.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_4.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_5.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_6.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_7.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_8.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Assembly-CSharp_9.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_DOTween46_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_DOTween_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_DOTween_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_FyberLitJson_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_FyberPlugin_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_10.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_11.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_12.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_13.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_14.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_15.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_16.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_4.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_5.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_6.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_7.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_8.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Generics_9.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Ionic.Zlib.CF_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Mono.Posix_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Mono.Security_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Mono.Security_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_4.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_5.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_6.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_7.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_8.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_mscorlib_9.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Opencoding.CommandHandlers_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Opencoding.Console_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Opencoding.LogHistory_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Opencoding.Shared_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_P31RestKit_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_Shared_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Configuration_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Core_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Security_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Xml_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Xml_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Xml_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System.Xml_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_System_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine.UI_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine.UI_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine_1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine_2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_UnityEngine_3.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Bulk_VacuumShaders.CurvedWorld_0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\GenericMethods0.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\GenericMethods1.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\GenericMethods2.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppAttributes.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCodeRegistration.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValuesTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_0Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_10Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_11Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_12Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_13Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_14Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_15Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_16Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_17Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_18Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_19Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_1Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_20Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_21Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_22Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_23Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_24Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_25Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_26Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_27Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_28Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_29Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_2Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_30Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_31Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_32Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_33Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_34Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_35Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_36Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_37Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_38Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_39Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_3Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_40Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_41Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_42Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_43Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_4Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_5Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_6Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_7Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_8Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppCompilerCalculateTypeValues_9Table.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppDelegateWrappersManagedToNativeTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGenericClassTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGenericInstDefinitions.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGenericMethodDefinitions.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGenericMethodPointerTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGenericMethodTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppGuids.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppInvokerTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppMarshalingFunctionsTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppMetadataRegistration.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppMetadataUsage.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppMethodPointerTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppReversePInvokeWrapperTable.o" "Temp/StagingArea\Il2Cpp\il2cppOutput\armeabi-v7a\Il2CppTypeDefinitions.o" -L "E:\Software\Unity3d\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\il2cpp\Release/StaticLibs/armeabi-v7a" -lil2cpp -lbdwgc -L "E:/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a" -lgnustl_static Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp-firstpass_0.cpp:32690: error: undefined reference to '_ReportAchievement' Temp/StagingArea\Il2Cpp\il2cppOutput/Bulk_Assembly-CSharp-firstpass_0.cpp:32690: error: undefined reference to '_ReportAchievement' clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation) UnityEngine.Debug:LogError(Object) NativeCompiler:RunProgram(ProcessStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:60) NativeCompiler:Execute(String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:26) UnityEditor.Android.c__AnonStorey2:<>m__6(TargetArchCompilerSettings)c__AnonStorey7C`1:<>m__11A(Object) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:89) Failed running E:/android-ndk-r10e/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/i686-linux-android-objcopy "Temp/StagingArea\assets\bin\Data\Native\x86\libil2cpp.so.debug" "Temp/StagingArea\assets\bin\Data\Native\x86\libil2cpp.so" --strip-all E:/android-ndk-r10e/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/i686-linux-android-objcopy: 'Temp/StagingArea\assets\bin\Data\Native\x86\libil2cpp.so.debug': No such file UnityEngine.Debug:LogError(Object) NativeCompiler:RunProgram(ProcessStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:60) NativeCompiler:Execute(String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:26) UnityEditor.Android.c__AnonStorey2:<>m__7(TargetArchCompilerSettings)c__AnonStorey7C`1:<>m__11A(Object) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:89) Failed running E:/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-objcopy "Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so.debug" "Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --strip-all E:/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-objcopy: 'Temp/StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so.debug': No such file UnityEngine.Debug:LogError(Object) NativeCompiler:RunProgram(ProcessStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:60) NativeCompiler:Execute(String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:26) UnityEditor.Android.c__AnonStorey2:<>m__7(TargetArchCompilerSettings)c__AnonStorey7C`1:<>m__11A(Object) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/NativeCompiler.cs:89)

Coding Errors

$
0
0
I have been trying to use this code from another question on Unity community to make my charector controller stick to platforms. I am getting compile errors so cant use it, I would ask on the actual question but it is from 2009 so not sure if users are still active. Original question: http://answers.unity3d.com/questions/8207/charactercontroller-falls-through-or-slips-off-mov.html My Errors: Assets/JKeepCharOnPlatform.cs(79,36): error CS1026: Unexpected symbol `;', expecting `)' Assets/JKeepCharOnPlatform.cs(79,37): error CS1026: Unexpected symbol `=', expecting `)' Assets/JKeepCharOnPlatform.cs(79,66): error CS1026: Unexpected symbol `=', expecting `)' Assets/JKeepCharOnPlatform.cs(89,1): error CS8025: Parsing error I am new to coding and have no idea how to fix, Here is my code: using UnityEngine; using System.Collections; /** Helps keeping charactercontroller entities nicely on the platform Needs a Collider set as trigger in the gameobject this script is added to works best if collider is bit smaller as platform but extends quite a lot (say .5m or so) above the platform, As the platform possibly already has a normal collider the easiest way is to add a GameObject to the platform, give it a trigger collider and add this script. The yOffset is the vertical offset the character should have above the platform (a good value to start with is half the y value of the Collider size). */ public class JKeepCharOnPlatform : MonoBehaviour { // helper struct to contain the transform of the player and the // vertical offset of the player (how high the center of the // charcontroller must be above the center of the platform) public struct Data { public Data(CharacterController ctrl, Transform t, float yOffset) { this.ctrl = ctrl; this.t = t; this.yOffset = yOffset; } public CharacterController ctrl; // the char controller public Transform t; // transform of char public float yOffset; // y offset of char above platform center }; public float verticalOffset = 0.25f; // height above the center of object the char must be kept // store all playercontrollers currently on platform private Hashtable onPlatform = new Hashtable(); // used to calculate horizontal movement private Vector3 lastPos; void OnTriggerEnter(Collider other) { CharacterController ctrl = other.GetComponent(typeof(CharacterController)) as CharacterController; // make sure we only move objects that are rigidbodies or charactercontrollers. // this to prevent we move elements of the level itself if (ctrl == null) return; Transform t = other.transform; // transform of character // we calculate the yOffset from the character height and center float yOffset = ctrl.height / 2f - ctrl.center.y + verticalOffset; Data data = new Data(ctrl, t, yOffset); // add it to table of characters on this platform // we use the transform as key onPlatform.Add(other.transform, data); } void OnTriggerExit(Collider other) { // remove (if in table) the uncollided transform onPlatform.Remove(other.transform); } void Start() { lastPos = transform.position; } void Update() { Vector3 curPos = transform.position; float y = curPos.y; // current y pos of platform // we calculate the delta Vector3 delta = curPos - lastPos; float yVelocity = delta.y; // remove y component of delta (as we use delta only for correcting // horizontal movement now... delta.y = 0f; lastPos = curPos; // let's loop over all characters in the table foreach (DictionaryEntry d in onPlatform) { Data data = (Data)d.Value; // get the data float charYVelocity = data.ctrl.velocity.y; // check if char seems to be jumping if ((charYVelocity & lt;= 0f) || (charYVelocity & lt;= yVelocity)) { // no, lets do our trick! Vector3 pos = data.t.position; // current charactercontroller position pos.y = y + data.yOffset; // adjust to new platform height pos += delta; // adjust to horizontal movement data.t.position = pos; // and write it back! } } } } Thank you for any help, much appreciated!

CommandInvokationFailure: Failed to re-package resources

$
0
0
Hi, I have am getting below error while building my game.Not sure what went wrong but it was working perfectly. I have Unity 5.5.01f play-services-resolver-1.2.30.0 Google Mobile Ads Unity Plugin v3.5.0 Here is my SDK ![alt text][1] ![alt text][2] CommandInvokationFailure: Failed to re-package resources. D:\Downloads\adt-bundle-windows-x86_64-20130729\sdk\build-tools\23.0.2\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "D:/Downloads/adt-bundle-windows-x86_64-20130729/sdk\platforms\android-26\android.jar" -F bin/resources.ap_ --extra-packages com.google.unity:com.google.android.gms.ads.impl:com.google.android.gms.ads:com.google.android.gms.base:com.google.android.gms:com.google.android.gms.clearcut:com.google.android.gms.gass:com.google.android.gms.tasks:android.support.v4 -S "D:\games\my game\Temp\StagingArea\android-libraries\play-services-ads-10.2.1\res" -S "D:\games\my game\Temp\StagingArea\android-libraries\play-services-ads-lite-10.2.1\res" -S "D:\games\my game\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res" -S "D:\games\my game\Temp\StagingArea\android-libraries\play-services-basement-10.2.1\res" -S "D:\games\my game\Temp\StagingArea\android-libraries\play-services-clearcut-10.2.1\res" -S "D:\games\my game\Temp\StagingArea\android-libraries\play-services-gass-10.2.1\res" -S "D:\games\my game\Temp\StagingArea\android-libraries\play-services-tasks-10.2.1\res" -S "D:\games\my game\Temp\StagingArea\android-libraries\support-v4-24.0.0\res" stderr[ D:\games\my game\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable\common_google_signin_btn_icon_dark.xml:7: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_dark_focused'). D:\games\my game\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable\common_google_signin_btn_icon_dark.xml:10: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_dark_normal'). D:\games\my game\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable\common_google_signin_btn_icon_light.xml:7: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_light_focused'). D:\games\my game\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable\common_google_signin_btn_icon_light.xml:10: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_icon_light_normal'). D:\games\my game\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable\common_google_signin_btn_text_dark.xml:9: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_dark_focused'). D:\games\my game\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable\common_google_signin_btn_text_dark.xml:12: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_dark_normal'). D:\games\my game\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable\common_google_signin_btn_text_light.xml:7: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_light_focused'). D:\games\my game\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable\common_google_signin_btn_text_light.xml:10: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_light_normal'). [1]: /storage/temp/97231-1untitled.png [2]: /storage/temp/97232-untitled.png Can anyone suggest a solution for this? Thanks in advanced

Unity shader compile error. Shader error in 'Standard' too many math instructions for sm2.0

$
0
0
When trying to build in Unity I'm getting the error: shader error in 'standard' too many math instructions for sm2.0 (65 needed, max is 64). Try #pragma target 3.0 at /Program Files/Unity/Editor/Data/CGIncludes/UnityStandardCore.cginc(424) (on d3d9). I don't use any custom shaders in my project, so this seems a bit strange. I've already tried restarting unity and my computer. Then I thought updating unity might help, I was using 5.6.1, and downloaded the new version, 2017.1.0, but to no avail. Something to note is that this error does not happen 100% of the time, and it seems like it happens most when I first open unity. I can use the play button in the editor and it seems to run fine. I also tried deleting my library and letting unity create a new one. Furthermore, when building, I had task manager open and I took this screenshot of the cpu usage. ![alt text][1] It seems strange that the shader compilers would take up this much cpu when I'm simply using the default shaders. I have an i7 6700 for reference. I also looked at the file that the error message pointed to and here are the relevant lines: `423 half4 c = UNITY_BRDF_PBS (s.diffColor, s.specColor, s.oneMinusReflectivity, s.smoothness, s.normalWorld, -s.eyeVec, gi.light, gi.indirect); 424 c.rgb += Emission(i.tex.xy);` So maybe it has to do with emission somehow? I only have one material with emission and it appears fine when the build does work or if I run from the editor. Thanks in advance for any help! [1]: /storage/temp/97691-task-manager-capture.png

Unity 5 batch mode - CS0246 'UnityEditor' could not be found.

$
0
0
Hi, I'm Matthew. I'm trying to create a PowerShell script to build Unity 5 on a 64-bit Windows 10 machine. **I'm testing this with the Unity's [SurvivalShooter tutorial.][1]** The [Command line arguments page][2] provides a build demo using C#. So I created a C# build script referring that page like this (File name = MyEditorScript.cs). using UnityEditor; using UnityEngine; class MyEditorScript : MonoBehaviour { static void PerformBuild() { BuildPlayerOptions bpo = new BuildPlayerOptions(); bpo.scenes = new[] { "Assets/PostProcessing/Utilities/CustomMotionTexture/MyScene.unity" }; bpo.locationPathName = "WinBuild"; bpo.target = BuildTarget.StandaloneWindows; bpo.options = BuildOptions.None; BuildPipeline.BuildPlayer(bpo); } } ![DIR0][3] ![DIR1][4] I have located the MyEditorScript.cs file inside the Asset file. I executed this script on PowerShell. $projdir = "C:\PROJ_DIR" $unity = 'C:\Program Files\Unity\Editor\Unity.exe' cd $projdir & $unity -batchmode -quit -runEditorTests -projectPath "C:\PROJECT_DIR" -editorTestsResultFile "C:\PROJECT_DIR" -executeMethod MyEditorScript.PerformBuild However, this returned an error CS0246 and this was found in the C:\Users\USER\AppData\Local\Unity\Editor\Editor.log file. Unity Editor itself also returned the same error when I tried to build the game. What should I do to solve this "'UnityEditor' could not be found." problem? Should I relocate the script file? -Best Regards [1]: https://unity3d.com/kr/learn/tutorials/projects/survival-shooter-tutorial [2]: https://docs.unity3d.com/Manual/CommandLineArguments.html [3]: /storage/temp/99181-dir0.png [4]: /storage/temp/99182-dir1.png

Custom Build step before compilation

$
0
0
Now that Unity has upgraded .NET support to 4.6, I am looking to update my package dependency process which I setup using this great guide: http://www.what-could-possibly-go-wrong.com/unity-and-nuget/. While I'm at it, I thought I would update the process to make it easier to use. Since Unity doesn't respect NuGet conventions which download .dll's for each .NET runtime which a package supports, I can't simply tell NuGet to install to Assets/Packages because (for example) NewtonSoft.Json downloads multiple .NET versions like this:![alt text][1] Unity (understandably) complains that an assembly `Newtonsoft.Json' with the same identity has already been imported. I thought that a simple solution would be to write a custom build step which simply loops through all dependencies in the default NuGet storage location (./packages), and copies the relevant folder to ./Assets/Packages. This way we don't need to store NuGet dependencies in source control, and both NuGet and Unity stick with the default conventions. Unfortunately it seems that Unity cannot execute custom build steps if there is a compilation error. I have tried creating a class which implements the build hook interfaces: public class NuGetBuildProcessor : IPreprocessBuild, IActiveBuildTargetChanged, IProcessScene { public int callbackOrder => int.MinValue; public void OnProcessScene(UnityEngine.SceneManagement.Scene scene) { Debug.Log("OnProcessScene"); } public void OnActiveBuildTargetChanged(BuildTarget previousTarget, BuildTarget newTarget) { Debug.Log("OnActiveBuildTargetChanged"); } public void OnPreprocessBuild(BuildTarget target, string path) { Debug.Log("OnPreprocessBuild"); } } But it seems that none of these callbacks execute if there is a compilation error. The only exception to this rule is if this class is created before the compilation errors are introduced in which case I guess it enters the Unity cache until Unity is closed. This doesn't help me because it means that a team-mate checking out new changes for the first time needs to remove all the code with compilation errors in order for the script to run. The other thing I tried was to add a MenuItem (a less desirable but acceptable solution) so that the user can manually trigger the NuGet restore+copy. It seems that custom menu items also fail to load though if Unity starts up with a compilation error. Is there another build hook which I'm missing? Is this a bug? To my mind a 'build' represents every step required to turn text-based code files into an executable. With this in mind, I feel that something called 'PreprocessBuild' would be a pre-compilation step, followed by compilation, assembly and finally post-processing (and I imagine many steps in between). [1]: /storage/temp/99194-newtonsoft.png

Help! i am not able to build my project!

$
0
0
Help! i am not able to build my project(Android) I get this list of errors(screenshot attached) ![alt text][1] [1]: /storage/temp/104212-fawfwafawf.png

Android build compiling error.

$
0
0
I made a VERY easy Android game (2 pictures and a move control). It told me the following error when I compile it:> **C:/Users/Administrator/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.xiaomi@1.0.2/XiaomiSupport/Editor/AppStoreSettingsEditor.cs(4,19): error CS0234: The type or namespace name 'Connect' does not exist in the namespace 'UnityEditor'. Are you missing an assembly reference?** The missing namespace also include `Editor` and `SerializedProperty` Plus another error: > **C:/Users/Administrator/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.xiaomi@1.0.2/XiaomiSupport/Editor/AppStoreSettingsEditor.cs(88,30): error CS0115: 'AppStoresSupport.AppStoreSettingsEditor.OnInspectorGUI()' is marked as an override but no suitable method found to override** I had uninstalled the old Unity and downloaded the newest one from Unity and a different Android SDKs with no avail! Could somebody PLEASE help me out please!? Thank you very VERY much! God bless you!!!

OpenGLES3 fails to compile shaders Hidden/Post FX/ for Android in Unity 2018.2

$
0
0
I'm trying out Unity 2018.2 with the LW VR preset setup for my Gear VR (2017) on my Samsung Galaxy S9+ (Android Oreo 8.0.0). But when I try to build for Android it fails to compile some shaders. I get messages like this: Shader error in 'Hidden/Post FX/Fog': undeclared identifier 'sampler_CameraDepthTexture' at line 63 (on gles3) Compiling Vertex program with STEREO_MULTIVIEW_ON Platform defines: UNITY_NO_DXT5nm UNITY_NO_RGBM UNITY_ENABLE_REFLECTION_BUFFERS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_NO_CUBEMAP_ARRAY UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 SHADER_API_MOBILE UNITY_HARDWARE_TIER2 UNITY_LIGHTMAP_DLDR_ENCODING I also get similar messages for: Shader error in 'Hidden/Post FX/Screen Space Reflection': undeclared identifier 'sampler_CameraDepthTexture' at line 129 (on gles3) Shader error in 'Hidden/Post FX/Motion Blur': undeclared identifier 'sampler_CameraDepthTexture' at Assets/PostProcessing/Resources/Shaders/MotionBlur.cginc(90) (on gles3) Shader error in 'Hidden/Post FX/Uber Shader': undeclared identifier 'sampler_CameraDepthTexture' at line 190 (on gles3) Shader error in 'Hidden/Post FX/Depth Of Field': undeclared identifier 'sampler_CameraDepthTexture' at Assets/PostProcessing/Resources/Shaders/DepthOfField.cginc(81) (on gles3) Shader error in 'Hidden/Post FX/Ambient Occlusion': undeclared identifier 'sampler_CameraDepthTexture' at Assets/PostProcessing/Resources/Shaders/AmbientOcclusion.cginc(106) (on gles3) Shader error in 'Hidden/Post FX/Temporal Anti-aliasing': undeclared identifier 'sampler_CameraDepthTexture' at Assets/PostProcessing/Resources/Shaders/TAA.cginc(70) (on gles3) It also outputs this: UnityEditor.BuildPlayerWindow+BuildMethodException: 8 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0021f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:187 at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:94 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) If I remove OpenGLES3 and only build using Vulkan the shaders compiles but then the per eye rendering and rotation tracking does not work, but that's another issue. Any ideas of how to fix these shader errors?

How to turn off compiling js files in Assets/Plugins/Android folder in Unity 2018.2.6

$
0
0
I upgraded my project from Unity version 2017.2.1 to 2018.2.6 and now getting compile errors like> Assets/Plugins/Android/mmedia/assets/mmadsdk/mraid.js(115,17):> BCE0044: unexpected char: '$'. But I don't want to compile it in the editor. How to turn compiling js files off? Thanks

Are you missing an assembly reference? Xbox Live Unity Plugin Compile Error

$
0
0
Im trying to compile using the X-Box live unity plugin and i get loads of Missing assembly references If searched all over the internet for a solution and cant find anything about this ![alt text][1] ![alt text][2] [1]: /storage/temp/132375-ss1.png [2]: /storage/temp/132376-ss5.png

Unity 2017 License

$
0
0
We have an old project from Unity 2017, that will not compile in Unity 2018 can we get a Pro license for 2017 to rebuild this project?

Copilation error after adding namespaces.

$
0
0
So for starters, in the beginning my game worked fine. But then I added a new script, and if I try to use using UnityEngine.SceneManager; I get an compilation error "All compilation errors have to be fixed bevor entering game mode". I tried deleting the cript and creating a new one and if I dont edit it, it works fine, but if I try to use the namespace I get an error. I dont use the sript anywhere. Also I used the same Namespace in another script in the same Game, and there it is fine. This also happens if I try adding SceneManager.LoadScene... but not if I do stuff like creating an integer.
Viewing all 166 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>