Add support for accessing Game Settings and related assets in C# API in game build
This commit is contained in:
28
Source/Engine/Physics/PhysicsSettings.cs
Normal file
28
Source/Engine/Physics/PhysicsSettings.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
|
||||
|
||||
using FlaxEngine;
|
||||
|
||||
namespace FlaxEditor.Content.Settings
|
||||
{
|
||||
partial class PhysicsSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// The collision layers masks. Used to define layer-based collision detection.
|
||||
/// </summary>
|
||||
#if FLAX_EDITOR
|
||||
[EditorOrder(1040), EditorDisplay("Layers Matrix"), CustomEditor(typeof(CustomEditors.Dedicated.LayersMatrixEditor))]
|
||||
#endif
|
||||
public uint[] LayerMasks = new uint[32];
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PhysicsSettings"/> class.
|
||||
/// </summary>
|
||||
public PhysicsSettings()
|
||||
{
|
||||
for (int i = 0; i < 32; i++)
|
||||
{
|
||||
LayerMasks[i] = uint.MaxValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user