Quantcast
Channel: Questions in topic: "namespace"
Viewing all articles
Browse latest Browse all 398

CrossPlatformInput class not within the UnityStandardAssets namespace

$
0
0
My Unity scripts require the cross platform input classes. First they were called in the usual way. using UnityStandardAssets.CrossPlatformInput; This worked for a long time. But recently all scripts that had the above statement gave this error. Assets/Standard Assets/Characters/ThirdPersonCharacter/Scripts/ThirdPersonUserControl.cs(3,27): error CS0234: The type or namespace name `CrossPlatformInput' does not exist in the namespace `UnityStandardAssets'. Are you missing an assembly reference? Now the project doesn't compile.. I googled and tried importing the scripts and assets again but nothing worked. Further search showed that this CrossPlatformInput class is under 'UnitySampleAssets' and not under 'UnityStandardAssets'. How can I resolve this error?

Viewing all articles
Browse latest Browse all 398


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