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; | |
using UnityEditor.SceneManagement; | |
using UnityEngine.SceneManagement; | |
using System.IO; | |
public class XHouVATEditorWindow : EditorWindow | |
{ |
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
import hou | |
def is_get_normal_available(): | |
"""Checks if the `getNormal()` method is available.""" | |
return hasattr(hou.Point, 'getNormal') | |
# 获取你想要输出法线的几何体 | |
geo = hou.node('/obj/grid1/VATIN').geometry() | |
# 打开一个新的txt文件用于写入 |
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; | |
namespace XUtility | |
{ | |
public static class XTransformUtility | |
{ | |
public static Vector3 PosFromMat4(in Matrix4x4 m) | |
{ |
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
[ExecuteAlways] | |
public class NeverEndingUpdateCallsInEditor : MonoBehaviour | |
{ | |
void OnDrawGizmos() | |
{ | |
// Your gizmo drawing thing goes here if required... | |
#if UNITY_EDITOR | |
// Ensure continuous Update calls. |
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
//No.15 | |
katana zero, yellow hair,man's black suits,one man,4k,handsome,ponytail, cyberpunk,night,sword fight posture, purple and dark blue style,yellow flash light | |
ugly,low quality, woman,female | |
//No.15 in void suit | |
katana, agent, yellow hair,one man,4k,ponytail, vietnam forest,sword fight posture, asian,green uniform,cape, soldier | |
ugly,low quality, woman,female,cute,young |
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 UnityEngine.Serialization; | |
//https://blog.csdn.net/PangNanGua/article/details/85261212 | |
namespace UnityEngine.Rendering.PostProcessing | |
{ | |
[Serializable] | |
[PostProcess(typeof(GaussianBlurRenderer), UnityEngine.Rendering.PostProcessing.PostProcessEvent.AfterStack, "XCPostProcess/GaussianBlur", true)] | |
public class GaussianBlur : PostProcessEffectSettings | |
{ |