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; | |
[RequireComponent(typeof(RectTransform))] | |
/// <summary> | |
/// 3DオブジェクトにUI張り付かせるやつ、ScreenSpace-Overay用 | |
/// </summary> | |
public class UIAttachTo3DObject : MonoBehaviour |
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
namespace hoge.hoge | |
{ | |
using UnityEngine; | |
public class BoundsSetter : MonoBehaviour | |
{ | |
[SerializeField] | |
private Vector3 targetBoundsSize; | |
private void Start() |
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
namespace hoge.hoge | |
{ | |
using System; | |
using DG.Tweening; | |
using UnityEngine; | |
public class MaterialFader : MonoBehaviour | |
{ | |
[SerializeField] | |
private Material[] alphaMaterials; |
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
namespace com.etc.utility | |
{ | |
using UnityEngine; | |
public class ImageNumViewer : MonoBehaviour | |
{ | |
[SerializeField] | |
private ImageNumViewUnit[] numViewUnits; | |
private int currentNum; |
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
namespace com.etc.utility | |
{ | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class ImageNumViewUnit : MonoBehaviour | |
{ | |
[SerializeField] | |
private Sprite[] numSprites; | |
[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
using System.Linq; | |
List<Transform> targetList; | |
Transform nearestTrans = targetList.OrderBy( x => (x.position - this.position).magnitude).First(); |
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; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
/* | |
MAKE A 3D OBJECT DRAGGABLE | |
Riccardo Stecca | |
http://www.riccardostecca.net |
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 UnityEngine; | |
using System.Collections; | |
public class ParamPrefsSetter : MonoBehaviour { | |
#region singleton | |
static ParamPrefsSetter instance; | |
public static ParamPrefsSetter Instance | |
{ |
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 UnityEngine; | |
using System.Collections; | |
/// <summary> | |
/// Riftが動いたら何かするコンポーネント。OculusUnityIntegrationに含まれる、OVRDevice.csもAddComponentされている必要があります。 | |
/// </summary> | |
public class OVRMoveCheckAndDoSomething : MonoBehaviour { | |
#region parameters | |
float preRotX; | |
Quaternion ovrRot; |
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 UnityEngine; | |
using System.Collections; | |
[RequireComponent (typeof (NavMeshAgent))] | |
public class agentLocomotion : MonoBehaviour { | |
private string locoState_ = "Locomotion_Stand"; | |
private NavMeshAgent agent_; | |
private Animation anim_; | |
private Vector3 linkStart_; |
NewerOlder