Created
April 18, 2018 15:49
-
-
Save Nobuyuki-Kobayashi/78c87dfc000d6a05be719f41d89f37a1 to your computer and use it in GitHub Desktop.
Unity:BeautifyDOFHelper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using BeautifyEffect; | |
public class BeautifyDOFHelper : MonoBehaviour { | |
public Transform dOFtarget; | |
GameObject mainCamera; | |
Beautify beautify; | |
public virtual Transform depthOfFieldTargetFocus{ | |
get; | |
set; | |
} | |
void Awake(){ | |
mainCamera = GameObject.FindGameObjectWithTag("MainCamera"); | |
beautify = mainCamera.GetComponent<Beautify>(); | |
} | |
void Start () { | |
beautify.depthOfFieldTargetFocus = dOFtarget; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment