Skip to content

Instantly share code, notes, and snippets.

@AchimTuran
AchimTuran / Utils.cpp
Created January 14, 2022 01:17
Force Unreal Engine Actor Component Destruction from Blueprints
#include "TUtils.h"
// Unreal Engine includes
#include "Components/ActorComponent.h"
void UUtils::ForceDestroyComponent(UActorComponent* ActorComponent)
{
if (ActorComponent && ActorComponent->IsValidLowLevel())
{
ActorComponent->DestroyComponent();
@AchimTuran
AchimTuran / .gitattributes
Created November 17, 2021 08:25
gitattributes & gitignore for a UE4 projects
# UE file types
*.uasset filter=lfs diff=lfs merge=lfs -text
*.umap filter=lfs diff=lfs merge=lfs -text
# Raw Content types
*.fbx filter=lfs diff=lfs merge=lfs -text
*.3ds filter=lfs diff=lfs merge=lfs -text
*.psd filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.mp3 filter=lfs diff=lfs merge=lfs -text
using UnityEngine;
using System.Collections;
public class MobilePlatformController: MonoBehaviour {
public Vector2 route;
public float timePerCycle = 2.0f;
[Range (0,2)]
public float startRelativePosition=0;
using UnityEngine;
using System.Collections;
public class MobilePlatformController: MonoBehaviour {
public Vector2 route;
public float timePerCycle = 2.0f;
[Range (0,2)]
public float startRelativePosition=0;