mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 18:29:11 +00:00
Use uint for layers in c_sharp_exports.rst
This commit is contained in:
@@ -355,13 +355,13 @@ Export annotations are also provided for the physics and render layers defined i
|
|||||||
.. code-block:: csharp
|
.. code-block:: csharp
|
||||||
|
|
||||||
[Export(PropertyHint.Layers2DPhysics)]
|
[Export(PropertyHint.Layers2DPhysics)]
|
||||||
public int Layers2DPhysics { get; set; }
|
public uint Layers2DPhysics { get; set; }
|
||||||
[Export(PropertyHint.Layers2DRender)]
|
[Export(PropertyHint.Layers2DRender)]
|
||||||
public int Layers2DRender { get; set; }
|
public uint Layers2DRender { get; set; }
|
||||||
[Export(PropertyHint.Layers3DPhysics)]
|
[Export(PropertyHint.Layers3DPhysics)]
|
||||||
public int layers3DPhysics { get; set; }
|
public uint Layers3DPhysics { get; set; }
|
||||||
[Export(PropertyHint.Layers3DRender)]
|
[Export(PropertyHint.Layers3DRender)]
|
||||||
public int layers3DRender { get; set; }
|
public uint Layers3DRender { get; set; }
|
||||||
|
|
||||||
Using bit flags requires some understanding of bitwise operations.
|
Using bit flags requires some understanding of bitwise operations.
|
||||||
If in doubt, use boolean variables instead.
|
If in doubt, use boolean variables instead.
|
||||||
|
|||||||
Reference in New Issue
Block a user