Files
Convention-Unity-Demo/Release/Convention-Unity-Demo_Data/StreamingAssets/Helper/ScriptableObject.h
2025-09-25 19:04:05 +08:00

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)
#define __build_in_pragma #
/*
<summary>
加载子脚本
</summary>
<param name="type">指定类型</param>
<param name="path">指定脚本,可用决定路径或与当前脚本目录的相对路径</param>
*/
#define LoadSubScript(type,path) __build_in_pragma include #type
/*
<summary>
设定为指定的值
</summary>
<param name="field">目标属性名称</param>
<param name="value">值的字符串,必须可从此字符串转换为目标属性的类型</param>
*/
#define SetValue(field,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()