Fix mixed tab/spaces in script templates

#2906
This commit is contained in:
Wojtek Figat
2024-09-09 07:34:45 +02:00
parent 8795667e10
commit 89462856e3
3 changed files with 4 additions and 5 deletions

View File

@@ -3,4 +3,3 @@ using System.Collections.Generic;
using FlaxEngine; using FlaxEngine;
namespace %namespace%; namespace %namespace%;

View File

@@ -13,10 +13,10 @@ API_CLASS() class %module%%class% : public ISerializable
API_AUTO_SERIALIZATION(); API_AUTO_SERIALIZATION();
DECLARE_SCRIPTING_TYPE_NO_SPAWN(%class%); DECLARE_SCRIPTING_TYPE_NO_SPAWN(%class%);
public: public:
// Custom float value. // Custom float value.
API_FIELD(Attributes = "Range(0, 20), EditorOrder(0), EditorDisplay(\"Data\")") API_FIELD(Attributes = "Range(0, 20), EditorOrder(0), EditorDisplay(\"Data\")")
float FloatValue = 20.0f; float FloatValue = 20.0f;
// Custom vector data. // Custom vector data.
API_FIELD(Attributes = "EditorOrder(1), EditorDisplay(\"Data\")") API_FIELD(Attributes = "EditorOrder(1), EditorDisplay(\"Data\")")
Vector3 Vector3Value = Vector3(0.1f); Vector3 Vector3Value = Vector3(0.1f);
}; };

View File

@@ -7,6 +7,6 @@ META_CB_END
META_PS(true, FEATURE_LEVEL_ES2) META_PS(true, FEATURE_LEVEL_ES2)
float4 PS_Fullscreen(Quad_VS2PS input) : SV_Target float4 PS_Fullscreen(Quad_VS2PS input) : SV_Target
{ {
// Solid color fill from the constant buffer passed from code // Solid color fill from the constant buffer passed from code
return Color; return Color;
} }