C# Class CustomTransformComponent, NGTools

Inheritance: Editor
显示文件 Open project: Naphier/NGTools

Public Properties

Property Type Description
alignTo AlignToType
alignmentAxis AxisFlag
rotationAxisFlag AxisFlag

Public Methods

Method Description
OnEnable ( ) : void
OnInspectorGUI ( ) : void

Private Methods

Method Description
AlignTo ( AlignToType to, AxisFlag axis ) : void
AlignmentInspector ( ) : void
ConvertToQuaternion ( Vector4 v4 ) : Quaternion
QuaternionInspector ( ) : void
QuaternionToVector4 ( Quaternion q ) : Vector4
RandomPosition ( Vector3 min, Vector3 max, Transform t ) : void
RandomPositionButton ( ) : void
RandomRotate ( AxisFlag axis, Transform selected ) : void
RandomRotateButton ( ) : void
RandomScale ( AxisFlag axis, Transform selected, bool scaleSame ) : void
RandomScaleButton ( ) : void
RdmDeg ( ) : float
ShowLocalAxisComponentToggle ( ) : void
StandardTransformInspector ( ) : void

Method Details

OnEnable() public method

public OnEnable ( ) : void
return void

OnInspectorGUI() public method

public OnInspectorGUI ( ) : void
return void

Property Details

alignTo public_oe property

public AlignToType alignTo
return AlignToType

alignmentAxis public_oe property

public AxisFlag alignmentAxis
return AxisFlag

rotationAxisFlag public_oe property

public AxisFlag rotationAxisFlag
return AxisFlag