-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathObjectTest.cs
More file actions
50 lines (42 loc) · 1017 Bytes
/
Copy pathObjectTest.cs
File metadata and controls
50 lines (42 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* Copyright (c) scott.cgi All Rights Reserved.
*
* This source code belongs to project MojoUnity-Packages, which is hosted on GitHub, and licensed under the MIT License.
*
* License: https://github.com/scottcgi/MojoUnity-Packages/blob/main/LICENSE
* GitHub : https://github.com/scottcgi/MojoUnity-Packages
* Package: https://github.com/scottcgi/MojoUnity-Packages/tree/main/MojoUnity-Editor
*
* Since : 2021-3-22
* Update : 2021-3-22
* Author : scott.cgi
*/
using System;
using UnityEngine;
public class ObjectTest : MonoBehaviour
{
public int f1;
public Data1 data;
[Serializable]
public struct Data1
{
public int f1;
public string s1;
public Data2 data;
}
[Serializable]
public struct Data2
{
public int f1;
public Data3 data;
}
[Serializable]
public struct Data3
{
public int f1;
public int f2;
[HideInInspector]
public int f3;
public int f4;
}
}