naverz / zepeto-studio-kor

48 stars 8 forks source link

[BUG]: AddComponent function does not work. #955

Closed AngeryOrang closed 1 year ago

AngeryOrang commented 2 years ago

Please tell us the version of the ZEPETO World package. (You can check the version in Unity > Window > Package Manager.) 1.4.1

Please tell us which version of the ZEPETO app is currently installed. (You can check the version in ZEPETO App > MY > Settings > Version.) 3.13.6

What features were you trying to implement? Try AddComponent

What problem did you encounter? If the AddComponent function is used, it gives null because the corresponding type does not exist... No matter how you look at it, it seems to work strangely. There is no way to add a component.

Please tell us your development environment. Window 10

Please attach the implemented code. If you have a screenshot, please attach it. The error message below appears. swizzling error,Error: c# exception:Object reference not set to an instance of an object,stack: at ZEPETO.Script.ZepetoScriptInstance.InitializeInstance (System.String module, ZEPETO.Script.ZepetoScriptContext context) [0x00017] in <5cda7f8e134b495f91d672a8b0db139c>:0 at ZEPETO.Script.ZepetoScriptBehaviourComponent.InitializeWithModule (System.String moduleName) [0x00006] in <5cda7f8e134b495f91d672a8b0db139c>:0 at ZEPETO.Script.Extensions.GetComponentsExtension.AddScriptComponent (System.String name, System.Object obj, ZEPETO.Script.ZepetoScriptContext context) [0x00012] in <5cda7f8e134b495f91d672a8b0db139c>:0 at ZEPETO.Script.Extensions.GetComponentsExtension.ContextFunctionWrapper (System.IntPtr isolate, System.IntPtr info, System.IntPtr self, System.Int32 len, System.Int64 data) [0x00049] in <5cda7f8e134b495f91d672a8b0db139c>:0

Zepeto-TechEvangelist commented 2 years ago

안녕하세요, Add Component 함수가 동작하지 않는 것은 일반적인 상황은 아니어서 작성하신 코드를 첨부해주시면 좋을 것 같습니다.