You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 24, 2020. It is now read-only.
/// Gets the bytes array stored by this data container asset.
23
+
/// Gets or sets the bytes array stored by this data container asset.
24
24
/// </summary>
25
-
/// <returns>The loaded bytes.</returns>
25
+
[UnmanagedCall]
26
+
publicbyte[]Data
27
+
{
28
+
#if UNIT_TEST_COMPILANT
29
+
get;set;
30
+
#else
31
+
get{returnInternal_GetData(unmanagedPtr);}
32
+
set{Internal_SetData(unmanagedPtr,value);}
33
+
#endif
34
+
}
35
+
36
+
/// <summary>
37
+
/// Saves asset to the file. It must be fully loaded.
38
+
/// </summary>
39
+
/// <remarks>
40
+
/// Supported only in Editor.
41
+
/// </remarks>
42
+
/// <param name="path">The custom asset path to use for the saving. Use empty value to save this asset to its own storage location. Can be used to duplicate model asset.</param>
43
+
/// <returns>True if cannot save data, otherwise false.</returns>
26
44
#if UNIT_TEST_COMPILANT
27
45
[Obsolete("Unit tests, don't support methods calls.")]
28
46
#endif
29
47
[UnmanagedCall]
30
-
publicbyte[]GetData()
48
+
publicboolSave(stringpath=null)
31
49
{
32
50
#if UNIT_TEST_COMPILANT
33
51
thrownewNotImplementedException("Unit tests, don't support methods calls. Only properties can be get or set.");
0 commit comments