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 "Custom/ZOffsetStandard" { | |
| Properties { | |
| _Color ("Color", Color) = (1,1,1,1) | |
| _MainTex ("Albedo (RGB)", 2D) = "white" {} | |
| _Glossiness ("Smoothness", Range(0,1)) = 0.5 | |
| _Metallic("Metallic", Range(0,1)) = 0.0 | |
| _ZOffset ("ZOffset", Range(-100,100)) = 0.0 | |
| } | |
| SubShader { | |
| Tags { "RenderType"="Opaque" } |
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.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEditor; | |
| public class WMipmapBias | |
| { | |
| [MenuItem("Assets/SetMipmapBias5")] | |
| public static void SetMipmapBias5() | |
| { |
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.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class OutlineSwitch : MonoBehaviour { | |
| public Material _mtl; | |
| public Color _color; | |
| // Use this for initialization | |
| void Start () { |
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.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| [RequireComponent(typeof(RectTransform))] | |
| [RequireComponent(typeof(Image))] | |
| public class RaycastMaskTest : MonoBehaviour, ICanvasRaycastFilter { | |
| [SerializeField] | |
| private float _ignoreAlpha = 0f; |
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.Text; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| [RequireComponent(typeof(Text))] | |
| public class MaxGameObjects : MonoBehaviour { | |
| string[] _units = new string[]{"","万","億","兆","京"}; | |
| int _num = 0; | |
| int _createOneFrame = 100; | |
| Text _text; |
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; | |
| using System.Collections.Generic; | |
| public class DExpression | |
| { | |
| public delegate object Function(Node n); | |
| static char[] _operators = new char[] { '+', '-', '*', '/' }; | |
| static char[] _bracket = new char[] { '(', ')' }; |
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.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class Snake : MonoBehaviour { | |
| // 軌跡 | |
| struct Trail | |
| { | |
| public Vector3 Position; | |
| public Quaternion Rotation; |
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.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using LaHuman; | |
| public class YBRigControl : MonoBehaviour | |
| { | |
| LaHumanRig _rig; | |
| BodyTransformsData _body = new BodyTransformsData(); | |
| Dictionary<string, GameObject> _dicObj = new Dictionary<string, GameObject>(); |
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.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class ScaleDrag : MonoBehaviour | |
| { | |
| Camera _cam; | |
| Transform _dragObject; | |
| Vector3 _localPos; | |
| Quaternion _localRot; |
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.Collections; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Text; | |
| using UnityEngine; | |
| public class LASImporter | |
| { | |
| public void Import(string filename) | |
| { |
OlderNewer