Simple crosshair widget and material

This commit is contained in:
2022-05-22 15:49:28 +03:00
parent 5a19278808
commit ec8a749ef8
3 changed files with 121 additions and 4 deletions

View File

@@ -0,0 +1,25 @@
using System;
using System.Diagnostics;
using FlaxEngine;
using FlaxEngine.GUI;
namespace Game
{
public class CrosshairWidget : Script
{
private Image control;
public override void OnAwake()
{
var uiControl = Actor.As<UIControl>();
//control = new Image();
//uiControl.Control = control;
control = (Image)uiControl.Control;
}
public override void OnUpdate()
{
}
}
}