Skip to content

Commit 5e16b58

Browse files
authored
Use uint for layers in c_sharp_exports.rst
1 parent 042c415 commit 5e16b58

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tutorials/scripting/c_sharp/c_sharp_exports.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,13 @@ Export annotations are also provided for the physics and render layers defined i
355355
.. code-block:: csharp
356356
357357
[Export(PropertyHint.Layers2DPhysics)]
358-
public int Layers2DPhysics { get; set; }
358+
public uint Layers2DPhysics { get; set; }
359359
[Export(PropertyHint.Layers2DRender)]
360-
public int Layers2DRender { get; set; }
360+
public uint Layers2DRender { get; set; }
361361
[Export(PropertyHint.Layers3DPhysics)]
362-
public int layers3DPhysics { get; set; }
362+
public uint Layers3DPhysics { get; set; }
363363
[Export(PropertyHint.Layers3DRender)]
364-
public int layers3DRender { get; set; }
364+
public uint Layers3DRender { get; set; }
365365
366366
Using bit flags requires some understanding of bitwise operations.
367367
If in doubt, use boolean variables instead.

0 commit comments

Comments
 (0)