浏览代码

Update documentation of Object3D#userData (#26799)

* Update userData description in Object3D.html

Updated the documentation to make clear what the default value is (otherwise one could assume it might be null or undefined).

* Update Texture.html

* Update Material.html

* Update BufferGeometry.html
Tim Weißenfels 1 年之前
父节点
当前提交
75b9699196

+ 1 - 0
docs/api/en/core/BufferGeometry.html

@@ -191,6 +191,7 @@
 		<p>
 		<p>
 			An object that can be used to store custom data about the BufferGeometry.
 			An object that can be used to store custom data about the BufferGeometry.
 			It should not hold references to functions as these will not be cloned.
 			It should not hold references to functions as these will not be cloned.
+			Default is an empty object `{}`.
 		</p>
 		</p>
 
 
 		<h3>[property:String uuid]</h3>
 		<h3>[property:String uuid]</h3>

+ 1 - 0
docs/api/en/core/Object3D.html

@@ -206,6 +206,7 @@
 		<p>
 		<p>
 			An object that can be used to store custom data about the Object3D. It
 			An object that can be used to store custom data about the Object3D. It
 			should not hold references to functions as these will not be cloned.
 			should not hold references to functions as these will not be cloned.
+			Default is an empty object `{}`.
 		</p>
 		</p>
 
 
 		<h3>[property:String uuid]</h3>
 		<h3>[property:String uuid]</h3>

+ 1 - 0
docs/api/en/materials/Material.html

@@ -369,6 +369,7 @@
 		<p>
 		<p>
 			An object that can be used to store custom data about the Material. It
 			An object that can be used to store custom data about the Material. It
 			should not hold references to functions as these will not be cloned.
 			should not hold references to functions as these will not be cloned.
+			Default is an empty object `{}`.
 		</p>
 		</p>
 
 
 		<h2>Methods</h2>
 		<h2>Methods</h2>

+ 1 - 0
docs/api/en/textures/Texture.html

@@ -281,6 +281,7 @@
 		<p>
 		<p>
 			An object that can be used to store custom data about the texture. It
 			An object that can be used to store custom data about the texture. It
 			should not hold references to functions as these will not be cloned.
 			should not hold references to functions as these will not be cloned.
+			Default is an empty object `{}`.
 		</p>
 		</p>
 
 
 		<h3>[property:Source source]</h3>
 		<h3>[property:Source source]</h3>