Метод | Описание | |
---|---|---|
AddComponent ( |
||
AddComponent ( |
||
Destroy ( Object original ) : void |
Destroy object
|
|
Destroy ( Object original, float t ) : void | ||
DestroyImmediate ( Object original ) : void | ||
DestroyImmediate ( Object original, bool allowDestroyingAssets ) : void | ||
Find ( string name ) : |
寻找GAMEOBJECT
|
|
FindWithTag ( string tag ) : |
|
|
ForeachChild ( |
|
|
GCCollect ( ) : void |
调用GC.Collect
|
|
GetAllChild ( |
|
|
GetAngle ( float p1x, float p1y, float p2x, float p2y ) : float |
得到两个点之间的夹角
|
|
GetBytes ( string utf8Str ) : byte[] |
获取bytes
|
|
GetClassType ( string classname ) : System.Type |
getType
|
|
GetComponent ( |
||
GetComponent ( |
|
|
GetComponentInChildren ( |
||
GetComponentInChildren ( |
GetComponentInChildren
|
|
GetComponents ( |
||
GetComponents ( |
|
|
GetComponentsInChildren ( |
||
GetComponentsInChildren ( |
|
|
GetLayerMask ( string args ) : int |
the Layersmask
|
|
GetUTF8String ( System bytes ) : string |
获取utf8字符串
|
|
Instantiate ( Object original ) : Object |
Instantiate Object
|
|
InstantiateGlobal ( |
|
|
InstantiateLocal ( |
||
InstantiateLocal ( |
|
|
InstantiateLocal ( |
||
InstantiateLocal ( |
||
LoadFromMemory ( System bytes ) : |
Creates from byte array.
|
|
LoadScene ( string sceneName, bool isAdditive ) : void |
Loads the scene.
|
|
PlayAnimation ( |
播放动画片段
|
|
PlayAnimator ( |
播放动画片段
|
|
Raycast ( |
Raycast the specified ray.
|
|
RefreshShader ( |
/// 得到类型 /// 刷新shader
|
|
RefreshShader ( |
||
ReleaseLuaFn ( |
||
RemoveComponent ( |
||
RemoveComponent ( |
||
SetLayer ( |
Sets the layer.
|
|
SetParent ( |
设置父对象
|
|
StringToHash ( string str ) : int |
str 转换为hash code
|
|
UnloadScene ( string sceneName ) : void |
卸载场景
|
public static AddComponent ( |
||
obj | ||
t | System | |
Результат |
public static AddComponent ( |
||
obj | ||
className | string | |
Результат |
public static Destroy ( Object original ) : void | ||
original | Object | |
Результат | void |
public static Destroy ( Object original, float t ) : void | ||
original | Object | |
t | float | |
Результат | void |
public static DestroyImmediate ( Object original ) : void | ||
original | Object | |
Результат | void |
public static DestroyImmediate ( Object original, bool allowDestroyingAssets ) : void | ||
original | Object | |
allowDestroyingAssets | bool | |
Результат | void |
public static Find ( string name ) : |
||
name | string | |
Результат |
public static FindWithTag ( string tag ) : |
||
tag | string | |
Результат |
public static ForeachChild ( |
||
parent | ||
eachFn | ||
Результат | void |
public static GetAllChild ( |
||
obj | ||
Результат | UnityEngine.Transform[] |
public static GetAngle ( float p1x, float p1y, float p2x, float p2y ) : float | ||
p1x | float | |
p1y | float | |
p2x | float | |
p2y | float | |
Результат | float |
public static GetBytes ( string utf8Str ) : byte[] | ||
utf8Str | string | |
Результат | byte[] |
public static GetClassType ( string classname ) : System.Type | ||
classname | string | |
Результат | System.Type |
public static GetComponent ( |
||
obj | ||
t | System | |
Результат |
public static GetComponent ( |
||
obj | ||
classname | string | |
Результат |
public static GetComponentInChildren ( |
||
obj | ||
t | System | |
Результат |
public static GetComponentInChildren ( |
||
obj | ||
classname | string | |
Результат |
public static GetComponents ( |
||
obj | ||
t | System | |
Результат | UnityEngine.Component[] |
public static GetComponents ( |
||
obj | ||
classname | string | |
Результат | UnityEngine.Component[] |
public static GetComponentsInChildren ( |
||
obj | ||
t | System | |
Результат | UnityEngine.Component[] |
public static GetComponentsInChildren ( |
||
obj | ||
classname | string | |
Результат | UnityEngine.Component[] |
public static GetLayerMask ( string args ) : int | ||
args | string | Arguments. |
Результат | int |
public static GetUTF8String ( System bytes ) : string | ||
bytes | System | |
Результат | string |
public static Instantiate ( Object original ) : Object | ||
original | Object | |
Результат | Object |
public static InstantiateGlobal ( |
||
original | ||
parent | ||
Результат |
public static InstantiateLocal ( |
||
original | ||
Результат |
public static InstantiateLocal ( |
||
original | ||
parent | ||
Результат |
public static InstantiateLocal ( |
||
original | ||
parent | ||
pos | ||
Результат |
public static InstantiateLocal ( |
||
original | ||
pos | ||
Результат |
public static LoadFromMemory ( System bytes ) : |
||
bytes | System | Bytes. |
Результат |
public static LoadScene ( string sceneName, bool isAdditive ) : void | ||
sceneName | string | Scene name. |
isAdditive | bool | If set to |
Результат | void |
public static PlayAnimation ( |
||
anim | ||
name | string | |
dir | AnimationDirection | |
Результат |
public static PlayAnimator ( |
||
anim | ||
name | string | |
dir | AnimationDirection | |
Результат |
public static Raycast ( |
||
ray | Ray. | |
Результат | object |
public static RefreshShader ( |
||
assetBundle | ||
Результат | void |
public static RefreshShader ( |
||
obj | ||
Результат | void |
public static ReleaseLuaFn ( |
||
fn | ||
Результат | void |
public static RemoveComponent ( |
||
comp | ||
Результат | void |
public static RemoveComponent ( |
||
obj | ||
className | string | |
Результат | void |
public static SetLayer ( |
||
transform | ||
layer | int | Layer. |
Результат | void |
public static SetParent ( |
||
child | ||
parent | ||
Результат | void |
public static StringToHash ( string str ) : int | ||
str | string | |
Результат | int |
public static UnloadScene ( string sceneName ) : void | ||
sceneName | string | |
Результат | void |