- Home /
Question by
Rukas90 · Sep 12, 2018 at 07:50 PM ·
script.classesstandard assetsfirstpersoncontrollernot found
Can't access other classes within FirstPersonController script
Hello, I'm am trying to access a custom MonoBehaviour class and pass it to the RequiredComponent attribute within the FirstPersonController script. But for some reason I cannot access anything.
namespace UnityStandardAssets.Characters.FirstPerson
{
[RequireComponent(typeof (CharacterController))]
[RequireComponent(typeof(PlayerReferences))] //Can't find PlayerReferences class
[RequireComponent(typeof (AudioSource))]
public class FirstPersonController : MonoBehaviour
{
Why can't I access anything within the FirstPersonController script? Thank you.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612174503im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Communication between classes from two different game objects 1 Answer
How can I make the Unity Standard Asset plane move in a scripted manner? 1 Answer
Make custom editor for generic class to apply to all current and future child classes 1 Answer
Unity how to access a static variable from the FirstPersonController component 2 Answers
auto change script in published build 0 Answers