This file contains hidden or 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
Shader "Effect/Water-R" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_NormalA("Normal A", 2D) = "" {} | |
_NormalAAmount("Normal A Amount", Range(0,100)) = 50 | |
_NormalASpeed("Normal A Speed", Float) = 1.0 | |
_NormalB("Normal B", 2D) = "" {} | |
_NormalBAmount("Normal B Amount", Range(0,100)) = 50 |
This file contains hidden or 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
//CompositeCollider2D can use only BoxCollider2D and PolygonCollider2D. | |
//This script helps your projects to use circle for CompositeCollider2D through creating circle polygon and setting it to PolygonCollider2D. | |
//Attach this to the GameObject, insert radius and number of points and click "Create Circle Polygon". | |
using UnityEngine; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
[RequireComponent(typeof(PolygonCollider2D))] | |
public class PolygonCollider2DHelper : MonoBehaviour |
This file contains hidden or 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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
namespace UnityEngine.Tilemaps | |
{ | |
[Serializable] | |
public class WolfAutoTile : TileBase |
This file contains hidden or 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.Scripting; | |
namespace UnityEngine.Tilemaps | |
{ | |
public abstract class TileBase : ScriptableObject | |
{ | |
public virtual bool GetTileAnimationData(Vector3Int position, ITilemap tilemap, ref TileAnimationData tileAnimationData); | |
//このタイルの情報を返す | |
public virtual void GetTileData(Vector3Int position, ITilemap tilemap, ref TileData tileData); |
This file contains hidden or 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 UnityEngine.EventSystems; | |
[RequireComponent(typeof(EventTrigger))] | |
public class DraggableGraphicWithEventTrigger : MonoBehaviour | |
{ | |
//ドラッグ開始地点とこのオブジェクトの原点との差分ベクトル | |
private Vector2 mouseOffset; |
This file contains hidden or 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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
namespace UnityEngine.Tilemaps | |
{ | |
[Serializable] |
NewerOlder