You're breathtaking!

This commit is contained in:
Wojtek Figat
2020-12-07 23:40:54 +01:00
commit 6fb9eee74c
5143 changed files with 1153594 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
%copyright%
#include "%filename%.h"
%class%::%class%(const SpawnParams& params)
: Script(params)
{
// Enable ticking OnUpdate function
_tickUpdate = true;
}
void %class%::OnEnable()
{
// Here you can add code that needs to be called when script is enabled (eg. register for events)
}
void %class%::OnDisable()
{
// Here you can add code that needs to be called when script is disabled (eg. unregister from events)
}
void %class%::OnUpdate()
{
// Here you can add code that needs to be called every frame
}

View File

@@ -0,0 +1,29 @@
%copyright%using System;
using System.Collections.Generic;
using FlaxEngine;
namespace %namespace%
{
public class %class% : Script
{
public override void OnStart()
{
// Here you can add code that needs to be called when script is created, just before the first game update
}
public override void OnEnable()
{
// Here you can add code that needs to be called when script is enabled (eg. register for events)
}
public override void OnDisable()
{
// Here you can add code that needs to be called when script is disabled (eg. unregister from events)
}
public override void OnUpdate()
{
// Here you can add code that needs to be called every frame
}
}
}

View File

@@ -0,0 +1,14 @@
%copyright%
#pragma once
#include "Engine/Scripting/Script.h"
API_CLASS() class %module%%class% : public Script
{
DECLARE_SCRIPTING_TYPE(%class%);
// [Script]
void OnEnable() override;
void OnDisable() override;
void OnUpdate() override;
};

View File

@@ -0,0 +1,12 @@
%copyright%#include "./Flax/Common.hlsl"
META_CB_BEGIN(0, Data)
float4 Color;
META_CB_END
META_PS(true, FEATURE_LEVEL_ES2)
float4 PS_Fullscreen(Quad_VS2PS input) : SV_Target
{
// Solid color fill from the constant buffer passed from code
return Color;
}