じろうの公開メモ

自分用のメモ置き場です

setUserObject


setUserObject

public void setUserObject(java.lang.Object userObject)
Associates an arbitrary, application specific Object with this Object3D. The given user object replaces any previously set object. See the class description for more information.

The user object is stored by reference. Its contents are never accessed by the implementation, but the reference is copied in the duplicate operation.
直訳:任意の、そして、アプリケーション特有のObjectをこのObject3Dに関連づけます。 特定のユーザオブジェクトはどんな以前に設定されたオブジェクトも取り替えます。 詳しい情報のためのクラス記述を見てください。

ユーザオブジェクトは参照で保存されます。 実現で内容は決してアクセスされませんが、参照は写し操作でコピーされます。

コピーっぽい