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
// | |
// QualitySettings/Shadows内のShadow Distance/Shadow Cascades/Cascade splitsをシーンから設定する. | |
// | |
// | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace UnityChan | |
{ |
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; |
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
// This is the helper script for PostEffectMaskRenderer.cs and attaches "MainCamera(with PostEffectMask)" | |
// to the "Mask" property of Post Effect Mask Renderer component. | |
// Attach to the gameobject with Post Effect Mask Renderer component. | |
// | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
[RequireComponent(typeof(PostEffectMaskRenderer))] |
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 UnityEditor; | |
namespace UnityChan | |
{ | |
public class CopyMaterialParameter : EditorWindow | |
{ | |
[SerializeField] |
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
//Unitychan Toon Shader ver.2.0 | |
//UTS2GUI.cs for UTS2 v.2.0.7 | |
//[email protected] | |
//https://github.com/unity3d-jp/UnityChanToonShaderVer2_Project | |
//(C)Unity Technologies Japan/UCL | |
using UnityEngine; | |
using UnityEditor; | |
namespace UnityChan | |
{ |
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
// | |
// https://qiita.com/Akematty/items/04fadac40f7ea45fd5ab | |
// https://github.com/Unity-Technologies/UnityCsReference/blob/master/Runtime/Animation/ScriptBindings/LookAtConstraint.bindings.cs | |
// を参考に、LookAt Constraint版ペアレントを動的に追加するヘルパー | |
// | |
using UnityEngine; | |
using UnityEngine.Animations; | |
namespace UnityChan |
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
// | |
// LookAtConstraintHelperのヘルパー. | |
// ユニティちゃんのHipsジョイントにつける場合の例. | |
// unityChanJointHips = GameObject.Find("/CandyRockStar/Character1_Reference/Character1_Hips").transform; | |
// とやってもいいけど、初期化のプレファブ生成と同時やるとタイミングの面で難しいので、ターゲットにTagを付けたほうがいいです. | |
// | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; |
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 UnityEngine.PostProcessing.Utilities; | |
public class FocusPullerHelper : MonoBehaviour { | |
private Transform focusObj; | |
private FocusPuller focusPuller; | |
private Transform _target; |
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 UnityEditor; | |
using UnityEngine; | |
public class AssetBundleChecker | |
{ | |
[MenuItem("Assets/CreateLink.xml")] | |
static void Create() | |
{ | |
var generator = new LinkXmlGenerator(); | |
// UnityEditor.Animations.AnimatorControllerを取得してしまうので、RuntimeAnimatorControllerに変更 |
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
/* | |
MIT License | |
Copyright (c) 2020 Yusuke Kurokawa | |
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 | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
OlderNewer