ソースを参照

Address review

Eideren 2 年 前
コミット
22a48f8840
1 ファイル変更2 行追加2 行削除
  1. 2 2
      en/manual/scripts/serialization.md

+ 2 - 2
en/manual/scripts/serialization.md

@@ -9,7 +9,7 @@ The editor and serialization system uses four attributes to determine what is se
 Adding this attribute to your `class` or `struct` notifies the serializer and the editor that it should
 Adding this attribute to your `class` or `struct` notifies the serializer and the editor that it should
 show fields and properties of that type, and serialize the data it contains with the scenes or assets that might include it.
 show fields and properties of that type, and serialize the data it contains with the scenes or assets that might include it.
 ```cs
 ```cs
-[DataContract(Inherited = true)]
+[Stride.Core.DataContract(Inherited = true)]
 public class MySerializedClass
 public class MySerializedClass
 {
 {
     public float MyValue;
     public float MyValue;
@@ -84,7 +84,7 @@ public object obj;
 // Read and set in editor with attribute
 // Read and set in editor with attribute
 [DataMember] public internal object obj;
 [DataMember] public internal object obj;
 
 
-// Read only ... readonly are read only.
+// Read only fields cannot be modified to point at another object, but the currently set object may be modified
 public readonly object obj;
 public readonly object obj;
 [DataMember] internal readonly object obj;
 [DataMember] internal readonly object obj;