Visibility.GetJson C# (CSharp) 메소드

GetJson() 공개 메소드

public GetJson ( ) : string
리턴 string
    public string GetJson()
    {
        var className = GetType ().Name.ToLower ();
        var id = GetInstanceID ();
        var json = "{\"type\": \"" + className + "\", \"id\": " + id + ", \"attributes\": " + JsonUtility.ToJson (this) + "}";
        Debug.Log (json);
        return json;
    }