- Home /
Question by
alexanderameye · Feb 26, 2017 at 04:42 PM ·
errorarraylistgameobject.findunexpected-symbol
Unexpected symbol `=' in class, struct, or interface member declaration Error
I have a script 'Example.cs' with a list declared in it. Then I'm trying to access it through another script (Test.cs).
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Test : MonoBehaviour
{
public Example ex = GameObject.Find("Test").GetComponent<Example>();
private List<Example> = ex.RotationTimeline;
}
but I'm getting 2 errors:
Assets/ReorderableList/Example/Test.cs(9,25): error CS1519: Unexpected symbol =' in class, struct, or interface member declaration and Assets/ReorderableList/Example/Test.cs(9,46): error CS1519: Unexpected symbol
;' in class, struct, or interface member declaration
anyone can help me out?
Comment
Best Answer
Answer by ninja_gear · Feb 26, 2017 at 04:48 PM
U have no name for your private list of examples.