Esempio n. 1
0
     internal static unsafe void Invoke(IntPtr obj, EDetachmentRule LocationRule, EDetachmentRule RotationRule, EDetachmentRule ScaleRule, bool bCallModify) {
         long* p = stackalloc long[] {0L,0L};
         byte* b = (byte*) p;
         *(b+0) = (byte)LocationRule;
         *(b+1) = (byte)RotationRule;
         *(b+2) = (byte)ScaleRule;
         *((bool*)(b+3)) = bCallModify;
         Main.GetProcessEvent(obj, K2_DetachFromComponent_ptr, new IntPtr(p)); ;
     }
 }
Esempio n. 2
0
 ///<summary>Detach this component from whatever it is attached to.</summary>
 ///<remarks>
 ///Automatically unwelds components that are welded together (See WeldTo)
 ///@param LocationRule                          How to handle translations when detaching.
 ///@param RotationRule                          How to handle rotation when detaching.
 ///@param ScaleRule                                     How to handle scales when detaching.
 ///@param bCallModify                           If true, call Modify() on the component and the current attach parent component
 ///</remarks>
 public void K2_DetachFromComponent(EDetachmentRule LocationRule, EDetachmentRule RotationRule, EDetachmentRule ScaleRule, bool bCallModify) =>
 SceneComponent_methods.K2_DetachFromComponent_method.Invoke(ObjPointer, LocationRule, RotationRule, ScaleRule, bCallModify);
Esempio n. 3
0
/// <summary>
/// Detach this component from whatever it is attached to. Automatically unwelds components that are welded together (See WeldTo)
/// @param LocationRule                          How to handle translations when detaching.
/// @param RotationRule                          How to handle rotation when detaching.
/// @param ScaleRule                                     How to handle scales when detaching.
/// @param bCallModify                           If true, call Modify() on the component and the current attach parent component
/// </summary>
        public void K2_DetachFromComponent(EDetachmentRule LocationRule = EDetachmentRule.KeepRelative, EDetachmentRule RotationRule = EDetachmentRule.KeepRelative, EDetachmentRule ScaleRule = EDetachmentRule.KeepRelative, bool bCallModify = true)
        {
            CheckIsValid();
            K2_DetachFromComponent(_this.Get(), (int)LocationRule, (int)RotationRule, (int)ScaleRule, bCallModify?1:0);
        }
Esempio n. 4
0
 public FDetachmentTransformRules(EDetachmentRule InLocationRule, EDetachmentRule InRotationRule, EDetachmentRule InScaleRule, bool bInCallModify) :
     base(E_CreateStruct_FDetachmentTransformRules_EDetachmentRule_EDetachmentRule_EDetachmentRule_bool((byte)InLocationRule, (byte)InRotationRule, (byte)InScaleRule, bInCallModify), false)
 {
 }
Esempio n. 5
0
 public FDetachmentTransformRules(EDetachmentRule inRule, bool bInCallModify) :
     base(E_CreateStruct_FDetachmentTransformRules_EDetachmentRule_bool((byte)inRule, bInCallModify), false)
 {
 }