Question by
Dami Toma · Sep 05, 2015 at 10:20 AM ·
error message
Problem accessing member of the Slider class
Hi guys, I keep getting an error while trying to access a member of the Slider class. Here's how I'm accessing the member:
import UnityEngine.UI;
var SliderObject : GameObject; var Societa : GameObject;
function Start () {
}
function Update () { SliderObject.GetComponent.().value = Societa.GetComponent.().position.y * 100; }
Am I doing something wrong? Thank you.
Comment
Answer by Dami Toma · Sep 05, 2015 at 10:22 AM
I forgot to report the error :
"Value is not a member of Slider".
Your answer
Follow this Question
Related Questions
UCE0001: ';' expected. Insert a semicolon at the end. 1 Answer
0xc000007b error on 64 bit machine? 1 Answer
Position is infinite 0 Answers