Skip to content

Instantly share code, notes, and snippets.

@ardaerbaharli
ardaerbaharli / UIBlur.shader
Created October 11, 2023 01:56 — forked from JohannesMP/UIBlur.shader
UI.Image Blur Shader with layering and masking support
Shader "Custom/UIBlur"
{
Properties
{
[Toggle(IS_BLUR_ALPHA_MASKED)] _IsAlphaMasked("Image Alpha Masks Blur", Float) = 1
[Toggle(IS_SPRITE_VISIBLE)] _IsSpriteVisible("Show Image", Float) = 1
// Internally enforced by MAX_RADIUS
_Radius("Blur Radius", Range(0, 64)) = 1
using System;
using Unity.Services.Core;
using Unity.Services.Mediation;
// using Analytics;
using UnityEngine;
using UnityEngine.Advertisements;
namespace Ads
{
@ardaerbaharli
ardaerbaharli / Achievement.cs
Created April 13, 2023 15:31
Social platforms solution for both android and iOS
using UnityEngine;
namespace SocialPlatforms
{
public class Achievement
{
public AchievementType Type;
public string ID;
public bool Completed;
public int TotalSteps;
using System;
using System.Collections.Generic;
using Ads;
using SocialPlatforms;
// using Analytics;
using UnityEngine;
using UnityEngine.Purchasing;
namespace IAP
{
@ardaerbaharli
ardaerbaharli / SelectGameObjectsWithMissingScripts.cs
Created April 10, 2023 03:50
Select GameObjects With Missing Scripts
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using UnityEngine.SceneManagement; //3
public class SelectGameObjectsWithMissingScripts : Editor
{
[MenuItem("Tools/Select GameObjects With Missing Scripts")]
static void SelectGameObjects()
{
@ardaerbaharli
ardaerbaharli / PListiOS.cs
Last active March 8, 2023 02:17
Automatically add plist pairs and capabilities with post processing
using System.IO;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;
using UnityEngine;
#if UNITY_IOS
#endif
// PListiOS - Edit the PList file.
@ardaerbaharli
ardaerbaharli / AnalyticsManager.cs
Created March 3, 2023 23:31
Firebase and AppsFlyer analytics manager
using System;
using AppsFlyerSDK;
using Firebase;
using IAP;
using UnityEngine;
using UnityEngine.Advertisements;
using UnityEngine.Purchasing;
namespace Analytics
{
@ardaerbaharli
ardaerbaharli / ATTRequester.cs
Created March 3, 2023 23:27
ATTRequester for iOS 14+
using System;
#if UNITY_IOS
using Unity.Advertisement.IosSupport;
#endif
using UnityEngine;
namespace ScriptsEEE
{
public class ATTRequester : MonoBehaviour
{
@ardaerbaharli
ardaerbaharli / EasingFunction.cs
Last active June 16, 2022 01:38 — forked from cjddmut/EasingFunctions.cs
Easing Functions for Unity3D
/*
* Created by C.J. Kimberlin
*
* The MIT License (MIT)
*
* Copyright (c) 2019
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
using UnityEngine;
public class NoClipFly : MonoBehaviour
{
public float mainSpeed = 1.0f; //regular speed
public float shiftAdd = 250.0f; //multiplied by how long shift is held. Basically running
public float maxShift = 1000.0f; //Maximum speed when holdin gshift
public float camSens = 0.25f; //How sensitive it with mouse
public bool invertY = true;