Quantcast
Channel: Questions in topic: "protection"
Viewing all articles
Browse latest Browse all 107

...FirstPersonController.m_WalkSpeed is inaccessible due to its protection level

$
0
0
I can't access my FirstPersonController variables despite making them public, here is the full error : Assets/Script/script.cs(15,67): error CS0122: `UnityStandardAssets.Characters.FirstPerson.FirstPersonController.m_WalkSpeed' is inaccessible due to its protection level In script.cs : using UnityStandardAssets.Characters.FirstPerson; ... GetComponent().m_WalkSpeed = 0f; and in FirstPersonController.cs : [SerializeField] public float m_WalkSpeed;

Viewing all articles
Browse latest Browse all 107

Trending Articles