Files
Convention-Unity-Demo/Assets/StreamingAssets/Helper/ScriptableObject.helper.h

105 lines
1.9 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
<summary>
重设指定时间线
</summary>
<param name="id">时间线ID若不存在则创建</param>
<param name="delta">当每次调用NextTimePoint函数时使用的单位值</param>
<param name="value">初始化时间</param>
*/
#define ResetTimePoint(id,delta,value)
/*
<summary>
推动时间线前进
</summary>
<param name="id">时间线ID</param>
<param name="times">前进次数,最终时间的增量为前进次数乘该时间线的单位值</param>
*/
#define NextTimePoint(id,times)
/*
<summary>
设置时间线的值
</summary>
<param name="id">时间线ID</param>
<param name="value">次数,时间线的值将被设置为次数乘该时间线的单位值</param>
*/
#define SetTimePoint(id,value)
/*
<summary>
设置局部上下文变量,将会传递给子物体使用
</summary>
<param name="name">字符串</param>
<param name="value">浮点数</param>
*/
#define SetContext(name,value)
/*
<summary>
设置坐标
</summary>
<param name="result"></param>
<param name="y"></param>
<param name="z"></param>
*/
#define SetLocalPosition(x,y,z)
/*
<summary>
设置欧拉角
</summary>
<param name="result"></param>
<param name="y"></param>
<param name="z"></param>
*/
#define SetLocalEulerAngles(x,y,z)
/*
<summary>
设置缩放
</summary>
<param name="result"></param>
<param name="y"></param>
<param name="z"></param>
*/
#define SetLocalScaling(x,y,z)
/*
<summary>
关闭该物体,
在面对如多Game场景时关闭某些GameWorld中默认存在的全局灯光等场景时非常有用
</summary>
*/
#define SetObjectDisable()
#define __build_in_pragma #
#define __build_in_to_text(x) #x
/*
<summary>
加载子脚本
</summary>
<param name="type">指定类型</param>
<param name="path">指定脚本,可用决定路径或与当前脚本目录的相对路径</param>
*/
#define LoadSubScript(type,path) __build_in_pragma include __build_in_to_text(./##type)