Jump to content

How to mod Struct member ?


hienngocloveyou

1 post in this topic

Recommended Posts

Posted

Hi,

Can you help me ? I want to know how to hook a struct and edit it's member (height,slope,offset)

The code below show the method return struct type and it's member.

public GameCamera.ZoomParams CameraZoomParams
        {
            [Token(Token = "0x6001120")]
            [Address(RVA = "0xBA6058", Offset = "0xBA6058", VA = "0xBA6058")]
            get
            {
                return default(GameCamera.ZoomParams);
            }
        }

public struct ZoomParams
        {
            // Token: 0x04000F56 RID: 3926
            [Token(Token = "0x400464A")]
            [Il2CppDummyDll.FieldOffset(Offset = "0x0")]
            public bool enabled;

            // Token: 0x04000F57 RID: 3927
            [Token(Token = "0x400464B")]
            [Il2CppDummyDll.FieldOffset(Offset = "0x4")]
            public float heigth;

            // Token: 0x04000F58 RID: 3928
            [Token(Token = "0x400464C")]
            [Il2CppDummyDll.FieldOffset(Offset = "0x8")]
            public float offset;

            // Token: 0x04000F59 RID: 3929
            [Token(Token = "0x400464D")]
            [Il2CppDummyDll.FieldOffset(Offset = "0xC")]
            public float slope;
        }

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines