Skip to content
Guest Big Announcement

How to mod Struct member ?

Featured Replies

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.

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.