Class LuaSerializableAttribute
- Namespace
- Cobilas.GodotEngine.GDLua
- Assembly
- com.cobilas.godot.lua.dll
Indicates that a type is serializable for Lua interoperability.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, Inherited = false, AllowMultiple = true)]
public sealed class LuaSerializableAttribute : Attribute, _Attribute
- Inheritance
-
LuaSerializableAttribute
- Implements
- Inherited Members
Remarks
Apply this attribute to classes or structures to mark them as serializable for communication between C# and Lua environments in the Godot engine. The attribute can be applied multiple times to handle multiple target types.
Constructors
LuaSerializableAttribute(Type)
Indicates that a type is serializable for Lua interoperability.
public LuaSerializableAttribute(Type typeTarget)
Parameters
typeTargetTypeThe target type that this serialization converter supports.
Remarks
Apply this attribute to classes or structures to mark them as serializable for communication between C# and Lua environments in the Godot engine. The attribute can be applied multiple times to handle multiple target types.
Properties
TypeTarget
Gets the target type that this serialization converter supports.
public Type TypeTarget { get; }