유저 프로파일 설정

Namespace: Matrix.Component
Assembly: MatrixGames (in MatrixGames.dll)

void SetProperty( 
string propertyID
string value
Callback<SetPropertyResponse> cb 
)
This language is not supported or no code example is available.

Parameters

propertyID

Type: string

설정할 프로파일 타입 ID. ex) "nickName", "profileUrl"

value

Type: string

cb

Type: Callback<SetPropertyResponse>

Callback function

Return Value

  • On Successful -

    cb.result: 0.

    cb.cause: "OK"

  • On Error -

    cb.result: 0가 아닌 integer 값

    cb.cause: 상세 에러 메세지

유저 탈퇴
	
  using UnityEngine;
  using System;
  using System.Collections;
  using System.Collections.Generic;
  using Matrix;
 
  static void onUserSetPropertyTest(Matrix.CallbackInfo<Matrix.Domain.User.SetPropertyResponse> info)
  {
      Debug.Log("onUserSetPropertyTest Called");
      Debug.Log("result: " + info.result);
 
      if (info.result == 0)
      {
          string message = info.response.StructToJson();
 
          Debug.Log(message);
      }
  }
 
  static void UserSetPropertyTest()
  {
      IMatrix API = MatrixManager.Instance;
      Debug.Log("[UserSetPropertyTest]");
 
      API.User.SetProperty("nickName", "MatrixUser", onUserSetPropertyTest);
  }
 					

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 3.5, 2.0, 1.0

XNA Framework

Supported in: 3.0, 2.0, 1.0